SqlClientFactory Class

SqlClientFactory Class

 

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

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

System.Object
  System.Data.Common.DbProviderFactory
    System.Data.SqlClient.SqlClientFactory

public sealed class SqlClientFactory : DbProviderFactory, IServiceProvider

NameDescription
System_CAPS_pubpropertyCanCreateDataSourceEnumerator

Returns true if a SqlDataSourceEnumerator can be created; otherwise false .(Overrides DbProviderFactory.CanCreateDataSourceEnumerator.)

NameDescription
System_CAPS_pubmethodCreateCommand()

Returns a strongly typed DbCommand instance.(Overrides DbProviderFactory.CreateCommand().)

System_CAPS_pubmethodCreateCommandBuilder()

Returns a strongly typed DbCommandBuilder instance.(Overrides DbProviderFactory.CreateCommandBuilder().)

System_CAPS_pubmethodCreateConnection()

Returns a strongly typed DbConnection instance.(Overrides DbProviderFactory.CreateConnection().)

System_CAPS_pubmethodCreateConnectionStringBuilder()
System_CAPS_pubmethodCreateDataAdapter()

Returns a strongly typed DbDataAdapter instance.(Overrides DbProviderFactory.CreateDataAdapter().)

System_CAPS_pubmethodCreateDataSourceEnumerator()
System_CAPS_pubmethodCreateParameter()

Returns a strongly typed DbParameter instance.(Overrides DbProviderFactory.CreateParameter().)

System_CAPS_pubmethodCreatePermission(PermissionState)
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticInstance

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

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft