Share via


SqlClientFactory Class

Definition

Represents a set of methods for creating instances of the Microsoft.Data.SqlClient provider's implementation of the data source classes.

public ref class SqlClientFactory sealed : System::Data::Common::DbProviderFactory, IServiceProvider
public ref class SqlClientFactory sealed : System::Data::Common::DbProviderFactory
public sealed class SqlClientFactory : System.Data.Common.DbProviderFactory, IServiceProvider
public sealed class SqlClientFactory : System.Data.Common.DbProviderFactory
type SqlClientFactory = class
    inherit DbProviderFactory
    interface IServiceProvider
type SqlClientFactory = class
    inherit DbProviderFactory
Public NotInheritable Class SqlClientFactory
Inherits DbProviderFactory
Implements IServiceProvider
Public NotInheritable Class SqlClientFactory
Inherits DbProviderFactory
Inheritance
SqlClientFactory
Implements

Fields

Instance

Gets an instance of the SqlClientFactory . This can be used to retrieve strongly typed data objects.

Properties

CanCreateBatch

Gets a value that indicates whether a DbBatch can be created.

CanCreateDataSourceEnumerator

Gets a value that indicates whether a SqlDataSourceEnumerator can be created.

Methods

CreateBatch()

Returns a strongly typed DbBatch instance.

CreateBatchCommand()

Returns a strongly typed DbBatchCommand instance.

CreateCommand()

Returns a strongly typed DbCommand instance.

CreateCommandBuilder()

Returns a strongly typed DbCommandBuilder instance.

CreateConnection()

Returns a strongly typed DbConnection instance.

CreateConnectionStringBuilder()

Returns a strongly typed DbConnectionStringBuilder instance.

CreateDataAdapter()

Returns a strongly typed DbDataAdapter instance.

CreateDataSourceEnumerator()

Returns a new SqlDataSourceEnumerator .

CreateParameter()

Returns a strongly typed DbParameter instance.

CreatePermission(PermissionState)

Returns a new CodeAccessPermission .

Explicit Interface Implementations

IServiceProvider.GetService(Type)

Extension mechanism for additional services; currently the only service supported is the DbProviderServices

Applies to