mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
Renamed the `NET_1_2' conditional to `NET_2_0' in all files. svn path=/trunk/mcs/; revision=25877
124 lines
2.2 KiB
C#
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
|