mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* list:
Add Mono.Data.TdsClient.Internal.TdsBigDecimal
Add System.Data.SqlClient.SqlParameterConverter
Add System.Data.DataSysDescriptionAttribute
* System.Data/DataSysDescriptionAttribute.cs:
New class added
* System.Data.Common/DbDataPermission.cs:
Add CreateInstance method
* System.Data.SqlClient/SqlClientPermission.cs:
* System.Data.SqlClient/SqlError.cs:
Add Serializable attribute
* System.Data.SqlClient/SqlCommand.cs:
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlDataAdapter.cs:
* System.Data.SqlClient/SqlParameter.cs:
Add some missing property attributes
* System.Data.SqlClient/SqlCommandBuilder.cs:
Add some missing property attributes
Implement properties
* System.Data.SqlClient/SqlDataReader.cs:
Implement missing methods
* System.Data.SqlClient/SqlErrorCollection.cs:
Implement the properties
* System.Data.SqlClient/SqlException.cs:
Remove extra property accessors
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
Add internal constructor
* System.Data.SqlClient/SqlParameterCollection.cs:
Add internal constructor
Add property attributes
* System.Data.SqlClient/SqlParameterConverter.cs:
New internal class added
* System.Data.SqlClient/SqlRowUpdatedEventArgs.cs:
* System.Data.SqlClient/SqlRowUpdatingEventArgs.cs:
Remove destructor
* System.Data.SqlTypes/SqlDecimal.cs:
Add implicit conversion from TdsBigDecimal to SqlDecimal
* System.Data.SqlTypes/SqlString.cs:
* System.Data.SqlTypes/SqlInt16.cs:
* System.Data.SqlTypes/SqlDateTime.cs:
Change code to remove compiler warnings
svn path=/trunk/mcs/; revision=8813
94 lines
1.9 KiB
C#
94 lines
1.9 KiB
C#
//
|
|
// System.Data.SqlClient.SqlErrorCollection.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Daniel Morgan ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// (C) Ximian, Inc 2002
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
using System;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Data.SqlClient {
|
|
[ListBindable (false)]
|
|
[Serializable]
|
|
public sealed class SqlErrorCollection : ICollection, IEnumerable
|
|
{
|
|
#region Fields
|
|
|
|
ArrayList list = new ArrayList();
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
internal SqlErrorCollection ()
|
|
{
|
|
}
|
|
|
|
internal SqlErrorCollection (byte theClass, int lineNumber, string message, int number, string procedure, string server, string source, byte state)
|
|
{
|
|
Add (theClass, lineNumber, message, number, procedure, server, source, state);
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
public int Count {
|
|
get { return list.Count; }
|
|
}
|
|
|
|
bool ICollection.IsSynchronized {
|
|
get { return list.IsSynchronized; }
|
|
}
|
|
|
|
object ICollection.SyncRoot {
|
|
get { return list.SyncRoot; }
|
|
}
|
|
|
|
public SqlError this[int index] {
|
|
get { return (SqlError) list [index]; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
internal void Add(SqlError error)
|
|
{
|
|
list.Add (error);
|
|
}
|
|
|
|
internal void Add(byte theClass, int lineNumber, string message, int number, string procedure, string server, string source, byte state)
|
|
{
|
|
SqlError error = new SqlError (theClass, lineNumber, message, number, procedure, server, source, state);
|
|
Add (error);
|
|
}
|
|
|
|
public void CopyTo (Array array, int index)
|
|
{
|
|
list.CopyTo (array, index);
|
|
}
|
|
|
|
public IEnumerator GetEnumerator()
|
|
{
|
|
return list.GetEnumerator ();
|
|
}
|
|
|
|
[MonoTODO]
|
|
public override string ToString()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|