mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* SqlClientFactory.cs: Added two using directives. (CreateConnectionStringBuilder): Implemented the method. (CreatePermission): Implemented the property. * SqlCommand.cs: Added one using directive. (Clone): Implemented the method. (Dispose): Implemented the method. (BeginExecuteXmlReader): Implemented the method. * SqlCommandBuilder.cs (QuoteIdentifier): Implemented the method. (UnquoteIdentifier): Implemented the method. * SqlConnection.cs (ChangePassword): Implemented the method. 2007-03-19 Nidhi Rawal <[email protected]> * SqlClientFactory.cs (CanCreateDataSourceEnumerator): Implemented the property. * SqlCommand.cs (Notification): Implemented the property. (NotificationAutoEnlist): Implemented the property. * SqlDataReader.cs (VisibleFieldCount): Implemented the property. * SqlConnectionStringBuilder.cs (TrustServerCertificate): Implemented the property. (TypeSystemVersion): Implemented the property. (UserInstance): Implemented the property. (ContextConnection): Implemented the property. * SqlConnection.cs (FireInfoMessageEventOnUserErrors): Implemented the property. (StatisticsEnabled): Implemented the property. * SqlDataAdapter.cs (UpdateBatchSize): Implemented the property. * SqlParameter.cs: Implemented one attribute. svn path=/trunk/mcs/; revision=75189
102 lines
3.5 KiB
C#
102 lines
3.5 KiB
C#
//
|
|
// System.Data.SqlClient.SqlClientFactory.cs
|
|
//
|
|
// Author:
|
|
// Sureshkumar T ([email protected])
|
|
//
|
|
//
|
|
// 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
|
|
namespace System.Data.SqlClient
|
|
{
|
|
using System.Data;
|
|
using System.Data.Common;
|
|
using System.Security;
|
|
using System.Security.Permissions;
|
|
|
|
public sealed class SqlClientFactory : DbProviderFactory
|
|
{
|
|
#region Fields
|
|
public static readonly SqlClientFactory Instance = new SqlClientFactory ();
|
|
#endregion //Fields
|
|
|
|
#region Constructors
|
|
|
|
private SqlClientFactory ()
|
|
{
|
|
|
|
}
|
|
#endregion //Constructors
|
|
|
|
#region Properties
|
|
public override bool CanCreateDataSourceEnumerator {
|
|
get { return true; }
|
|
}
|
|
#endregion //Properties
|
|
|
|
#region public overrides
|
|
public override DbCommand CreateCommand ()
|
|
{
|
|
return (DbCommand) new SqlCommand ();
|
|
}
|
|
|
|
public override DbCommandBuilder CreateCommandBuilder ()
|
|
{
|
|
return (DbCommandBuilder) new SqlCommandBuilder ();
|
|
}
|
|
|
|
public override DbConnection CreateConnection ()
|
|
{
|
|
return (DbConnection) new SqlConnection ();
|
|
}
|
|
|
|
public override DbConnectionStringBuilder CreateConnectionStringBuilder ()
|
|
{
|
|
return (DbConnectionStringBuilder) new SqlConnectionStringBuilder ();
|
|
}
|
|
|
|
public override DbDataAdapter CreateDataAdapter ()
|
|
{
|
|
return (DbDataAdapter) new SqlDataAdapter ();
|
|
}
|
|
|
|
public override DbDataSourceEnumerator CreateDataSourceEnumerator ()
|
|
{
|
|
return (DbDataSourceEnumerator) new SqlDataSourceEnumerator ();
|
|
}
|
|
|
|
public override DbParameter CreateParameter ()
|
|
{
|
|
return (DbParameter) new SqlParameter ();
|
|
}
|
|
|
|
public override CodeAccessPermission CreatePermission (PermissionState state)
|
|
{
|
|
return (CodeAccessPermission) new SqlClientPermission(state);
|
|
}
|
|
#endregion // public overrides
|
|
}
|
|
}
|
|
#endif // NET_2_0
|