diff options
author | Tim Coleman <tim@mono-cvs.ximian.com> | 2003-12-17 04:59:11 +0300 |
---|---|---|
committer | Tim Coleman <tim@mono-cvs.ximian.com> | 2003-12-17 04:59:11 +0300 |
commit | 7b11d92602703ff83aa2ba2559ea293cbf0283d5 (patch) | |
tree | b3072e49e9ae69d91ddc5f6d0c727251d2a2009c /mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs | |
parent | aadaf043bb9829f45320c6db29db2d41ef45e0c8 (diff) |
2003-12-16 Tim Coleman <tim@timcoleman.com>
* CatalogLocation.cs DbCommand.cs DbCommandBuilder.cs
* DbCommandOptionalFeatures.cs DbCommandSet.cs DbConnection.cs
* DbConnectionString.cs DbDataSourceEnumerator.cs
* DbDataUpdatableRecord.cs DbParameter.cs DbParameterCollection.cs
* DbProviderConfigurationHandler.cs DbProviderFactories.cs
* DbProviderFactoriesConfigurationHandler.cs DbProviderFactory.cs
* DbProviderSupportedClasses.cs DbTable.cs DbTransaction.cs
* GroupByBehavior.cs IdentifierCase.cs SchemaLocation.cs
* SchemaTableColumn.cs:
New stubs added for .NET 1.2
* DataAdapter.cs DataColumnMapping.cs DataColumnMappingCollection.cs
* DataTableMapping.cs DataTableMappingCollection.cs DbDataAdapter.cs
* DbDataPermission.cs DbDataPermissionAttribute.cs DbDataRecord.cs
* FieldNameLookup.cs SchemaInfo.cs:
Changes made for .NET 1.2
svn path=/trunk/mcs/; revision=21259
Diffstat (limited to 'mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs b/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs new file mode 100644 index 00000000000..b54f6aae2fd --- /dev/null +++ b/mcs/class/System.Data/System.Data.Common/DbParameterCollection.cs @@ -0,0 +1,84 @@ +// +// System.Data.Common.DbParameterCollection.cs +// +// Author: +// Tim Coleman (tim@timcoleman.com) +// +// Copyright (C) Tim Coleman, 2003 +// + +#if NET_1_2 + +using System.Collections; +using System.Runtime.InteropServices; + +namespace System.Data.Common { + public abstract class DbParameterCollection : MarshalByRefObject, IDataParameterCollection, IList, ICollection, IEnumerable + { + #region Constructors + + [MonoTODO] + protected DbParameterCollection () + { + } + + #endregion // Constructors + + #region Properties + + public abstract int Count { get; } + + object IDataParameterCollection.this [string parameterName] { + get { return this [parameterName]; } + set { this [parameterName] = (DbParameter) value; } + } + + object IList.this [int objA] { + get { return this [objA]; } + set { this [objA] = (DbParameter) value; } + } + + public abstract bool IsFixedSize { get; } + public abstract bool IsReadOnly { get; } + public abstract bool IsSynchronized { get; } + + [MonoTODO] + public DbParameter this [string ulAdd] { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + [MonoTODO] + public DbParameter this [[Optional] int ulAdd] { + get { throw new NotImplementedException (); } + set { throw new NotImplementedException (); } + } + + public abstract object SyncRoot { get; } + + #endregion // Properties + + #region Methods + + public abstract int Add (object value); + public abstract void AddRange (Array values); + protected abstract int CheckName (string parameterName); + public abstract void Clear (); + public abstract bool Contains (object value); + public abstract bool Contains (string value); + public abstract void CopyTo (Array ar, int index); + public abstract IEnumerator GetEnumerator (); + protected abstract DbParameter GetParameter (int index); + public abstract int IndexOf (object value); + public abstract int IndexOf (string parameterName); + public abstract void Insert (int index, object value); + public abstract void Remove (object value); + public abstract void RemoveAt (int index); + public abstract void RemoveAt (string parameterName); + protected abstract void SetParameter (int index, DbParameter value); + + #endregion // Methods + } +} + +#endif // NET_1_2 |