mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* System.Data.build:
* System.Data.SqlClient/SqlCommand.cs:
* System.Data.SqlClient/SqlConnection.cs:
* System.Data.SqlClient/SqlConnectionPool.cs:
* System.Data.SqlClient/SqlDataReader.cs:
* System.Data.SqlClient/SqlException.cs:
* System.Data.SqlClient/SqlInfoMessageEventArgs.cs:
* System.Data.SqlClient/SqlParameter.cs:
* System.Data.SqlClient/SqlTransaction.cs:
* System.Data.SqlClient/SqlXmlTextReader.cs:
* System.Data.SqlTypes/SqlDecimal.cs:
Modify to accept new Mono.Data.Tds.Protocol
namespace in Mono.Data.Tds assembly, replacing
Mono.Data.TdsClient.Internal
svn path=/trunk/mcs/; revision=9131
62 lines
1.2 KiB
C#
62 lines
1.2 KiB
C#
//
|
|
// System.Data.SqlClient.SqlInfoMessageEventArgs.cs
|
|
//
|
|
// Author:
|
|
// Rodrigo Moya ([email protected])
|
|
// Daniel Morgan ([email protected])
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// (C) Ximian, Inc 2002
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
|
|
using Mono.Data.Tds.Protocol;
|
|
using System;
|
|
using System.Data;
|
|
|
|
namespace System.Data.SqlClient {
|
|
public sealed class SqlInfoMessageEventArgs : EventArgs
|
|
{
|
|
#region Fields
|
|
|
|
SqlErrorCollection errors = new SqlErrorCollection ();
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
internal SqlInfoMessageEventArgs (TdsInternalErrorCollection tdsErrors)
|
|
{
|
|
foreach (TdsInternalError e in tdsErrors)
|
|
errors.Add (e.Class, e.LineNumber, e.Message, e.Number, e.Procedure, e.Server, "Mono SqlClient Data Provider", e.State);
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
public SqlErrorCollection Errors {
|
|
get { return errors; }
|
|
}
|
|
|
|
public string Message {
|
|
get { return errors[0].Message; }
|
|
}
|
|
|
|
public string Source {
|
|
get { return errors[0].Source; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
|
|
#region Methods
|
|
|
|
public override string ToString()
|
|
{
|
|
return Message;
|
|
}
|
|
|
|
#endregion // Methods
|
|
}
|
|
}
|