Files
mono/mcs/class/System.Data/System.Data.ProviderBase/DbCommandBase.cs
T
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00

124 lines
2.2 KiB
C#

//
// System.Data.ProviderBase.DbCommandBase
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2003
//
#if NET_2_0
using System.Data.Common;
namespace System.Data.ProviderBase {
public abstract class DbCommandBase : DbCommand
{
#region Fields
string commandText;
int commandTimeout;
CommandType commandType;
bool designTimeVisible;
UpdateRowSource updatedRowSource;
#endregion // Fields
#region Constructors
protected DbCommandBase ()
{
CommandText = String.Empty;
CommandTimeout = 30;
CommandType = CommandType.Text;
DesignTimeVisible = true;
UpdatedRowSource = UpdateRowSource.Both;
}
protected DbCommandBase (DbCommandBase from)
{
}
#endregion // Constructors
#region Properties
public override string CommandText {
get { return commandText; }
set { commandText = value; }
}
public override int CommandTimeout {
get { return commandTimeout; }
set { commandTimeout = value; }
}
public override CommandType CommandType {
get { return commandType; }
set { commandType = value; }
}
public override bool DesignTimeVisible {
get { return designTimeVisible; }
set { designTimeVisible = value; }
}
public override UpdateRowSource UpdatedRowSource {
get { return updatedRowSource; }
set { updatedRowSource = value; }
}
#endregion // Properties
#region Methods
[MonoTODO]
public override void Cancel ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public override int ExecuteNonQuery ()
{
DbDataReader reader = ExecuteReader ();
reader.Close ();
return reader.RecordsAffected;
}
[MonoTODO]
public override object ExecuteScalar ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public override void Prepare ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void PropertyChanging ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void ResetCommandTimeout ()
{
throw new NotImplementedException ();
}
[MonoTODO]
protected internal static void SetInputParameterValues (DbCommand command, object[] inputParameterValues)
{
throw new NotImplementedException ();
}
#endregion // Methods
}
}
#endif