mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
2005-03-08 Sureshkumar T <[email protected]> * DbParameterBase.cs: Implemented most of get set methods. * DbConnectionBase.cs: Commented ConnectionOptions creation, because it is not yet implemented. * DbCommandBase.cs: Implemented ExecuteScalar method. * DbParameterCollectionBase.cs: Implemented Add method. * DbDataReaderBase.cs: removed internal constructor DbDataReader (DbCommand). In System.Data.SqlClient: 2005-03-08 Sureshkumar T <[email protected]> * SqlDataReader.cs: Call base constructor with CommandBehavior parameter instead of passing DbCommand object. The internal base class with DbCommand Parameter is removed. svn path=/trunk/mcs/; revision=41552
213 lines
4.5 KiB
C#
213 lines
4.5 KiB
C#
//
|
|
// System.Data.ProviderBase.DbParameterBase
|
|
//
|
|
// Author:
|
|
// Sureshkumar T ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// Copyright (C) Tim Coleman, 2003
|
|
//
|
|
//
|
|
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
// a copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
// the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be
|
|
// included in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
//
|
|
|
|
#if NET_2_0
|
|
|
|
using System.Data.Common;
|
|
|
|
namespace System.Data.ProviderBase {
|
|
public abstract class DbParameterBase : DbParameter
|
|
{
|
|
|
|
#region Fields
|
|
string _name;
|
|
ParameterDirection _direction = ParameterDirection.Input;
|
|
bool _isNullable = false;
|
|
int _size;
|
|
byte _precision;
|
|
byte _scale;
|
|
object _paramValue;
|
|
int _offset;
|
|
DataRowVersion _sourceVersion;
|
|
string _sourceColumn;
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
[MonoTODO]
|
|
protected DbParameterBase ()
|
|
{
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected DbParameterBase (DbParameterBase source)
|
|
{
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
[MonoTODO]
|
|
protected object CoercedValue {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
public override ParameterDirection Direction {
|
|
get { return _direction; }
|
|
set { _direction = value; }
|
|
}
|
|
|
|
public override bool IsNullable {
|
|
get { return _isNullable; }
|
|
set { _isNullable = value; }
|
|
}
|
|
|
|
|
|
public override int Offset {
|
|
get { return _offset; }
|
|
set { _offset = value; }
|
|
}
|
|
|
|
public override string ParameterName {
|
|
get { return _name; }
|
|
set { _name = value; }
|
|
}
|
|
|
|
public override byte Precision {
|
|
get { return _precision; }
|
|
set { _precision = value; }
|
|
|
|
}
|
|
|
|
public override byte Scale {
|
|
get { return _scale; }
|
|
set { _scale = value; }
|
|
|
|
}
|
|
|
|
public override int Size {
|
|
get { return _size; }
|
|
set { _size = value; }
|
|
}
|
|
|
|
|
|
public override string SourceColumn {
|
|
get { return _sourceColumn; }
|
|
set { _sourceColumn = value; }
|
|
}
|
|
|
|
|
|
public override DataRowVersion SourceVersion {
|
|
get { return _sourceVersion; }
|
|
set { _sourceVersion = value; }
|
|
}
|
|
|
|
|
|
public override object Value {
|
|
get { return _paramValue; }
|
|
set { _paramValue = value; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
|
|
#region Methods
|
|
|
|
[MonoTODO]
|
|
public override void CopyTo (DbParameter destination)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public virtual void PropertyChanging ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected void ResetCoercedValue ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected void ResetScale ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected void SetCoercedValue ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected bool ShouldSerializePrecision ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected bool ShouldSerializeScale ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected bool ShouldSerializeSize ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override string ToString ()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected virtual byte ValuePrecision (object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected virtual byte ValueScale (object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
protected virtual int ValueSize (object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
#endregion // Methods
|
|
}
|
|
}
|
|
|
|
#endif
|