mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Data.SqlClient/SqlCommand.cs: modified - to compile using mcs. This problem is returning a stronger type in csc vs. msc * System.Data.SqlClient/SqlConnection.cs: modified - msc can not do a using PGconn = IntPtr; and then declare with PGconn pgConn = IntPtr.Zero; Thiw works under csc though. Had to comment using and changed declaration to IntPtr pgConn = IntPtr.Zero; Also, got rid of compile warnings for hostaddr and port. * System.Data.SqlClient/SqlErrorCollection.cs: modified - got rid of compile warnings. Commented MonoTODO attribute because mcs doesn't seem to work with C# array property indexer (Item) this[int index] * System.Data.SqlClient/SqlParameterCollection.cs: modified - commented MonoTODO attribute for indexer for mcs compiling * Test/TestSqlIsolationLevel.cs: * Test/TestSqlInsert.cs: * Test/TestSqlException.cs: modified - removed extra ExecuteNonQuery which caused two inserted rows svn path=/trunk/mcs/; revision=3938
232 lines
4.1 KiB
C#
232 lines
4.1 KiB
C#
//
|
|
// System.Data.SqlClient.SqlParameterCollection.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Daniel Morgan ([email protected])
|
|
//
|
|
// (C) Ximian, Inc 2002
|
|
//
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Collections;
|
|
|
|
namespace System.Data.SqlClient
|
|
{
|
|
/// <summary>
|
|
/// Collects all parameters relevant to a Command object
|
|
/// and their mappings to DataSet columns.
|
|
/// </summary>
|
|
// public sealed class SqlParameterCollection : MarshalByRefObject,
|
|
// IDataParameterCollection, IList, ICollection, IEnumerable
|
|
public sealed class SqlParameterCollection : IDataParameterCollection
|
|
{
|
|
[MonoTODO]
|
|
public void RemoveAt(string parameterName)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public int IndexOf(string parameterName)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public bool Contains(string parameterName)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
// [MonoTODO]
|
|
public object this[string parameterName]
|
|
{
|
|
get { throw new NotImplementedException (); }
|
|
set { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public int Add( object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public SqlParameter Add(SqlParameter value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public SqlParameter Add(string parameterName, object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public SqlParameter Add(string parameterName, SqlDbType sqlDbType)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public SqlParameter Add(string parameterName,
|
|
SqlDbType sqlDbType, int size)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public SqlParameter Add(string parameterName,
|
|
SqlDbType sqlDbType, int size, string sourceColumn)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Clear()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public bool Contains(object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
/*
|
|
[MonoTODO]
|
|
public bool Contains(string value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
*/
|
|
|
|
[MonoTODO]
|
|
public void CopyTo(Array array, int index)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public int IndexOf(object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
/*
|
|
[MonoTODO]
|
|
public int IndexOf(string parameterName)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
*/
|
|
[MonoTODO]
|
|
public void Insert(int index, object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void Remove(object value)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public void RemoveAt(int index)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
/*
|
|
[MonoTODO]
|
|
public void RemoveAt(string parameterName)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
*/
|
|
/*
|
|
[MonoTODO]
|
|
[Serializable]
|
|
[ClassInterface(ClassInterfaceType.AutoDual)]
|
|
~SqlParameterCollection();
|
|
*/
|
|
|
|
[MonoTODO]
|
|
public int Count {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
// [MonoTODO]
|
|
object IList.this[int index] {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
set {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
// [MonoTODO]
|
|
public SqlParameter this[int index] {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
set {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
/*
|
|
[MonoTODO]
|
|
public SqlParameter this[string parameterName] {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
set {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
*/
|
|
|
|
bool IList.IsFixedSize {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
bool IList.IsReadOnly {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
bool ICollection.IsSynchronized {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
object ICollection.SyncRoot {
|
|
get {
|
|
throw new NotImplementedException ();
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|