SqlClientFactory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a set of methods for creating instances of the System.Data.SqlClient provider's implementation of the data source classes.
public ref class SqlClientFactory sealed : System::Data::Common::DbProviderFactory
public ref class SqlClientFactory sealed : System::Data::Common::DbProviderFactory, IServiceProvider
public sealed class SqlClientFactory : System.Data.Common.DbProviderFactory
public sealed class SqlClientFactory : System.Data.Common.DbProviderFactory, IServiceProvider
type SqlClientFactory = class
inherit DbProviderFactory
type SqlClientFactory = class
inherit DbProviderFactory
interface IServiceProvider
Public NotInheritable Class SqlClientFactory
Inherits DbProviderFactory
Public NotInheritable Class SqlClientFactory
Inherits DbProviderFactory
Implements IServiceProvider
- Inheritance
- 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 this DbProviderFactory instance supports the DbBatch class. (Inherited from DbProviderFactory) |
CanCreateCommandBuilder |
Gets a value that indicates whether this DbProviderFactory instance supports the DbCommandBuilder class. (Inherited from DbProviderFactory) |
CanCreateDataAdapter |
Gets a value that indicates whether this DbProviderFactory instance supports the DbDataAdapter class. (Inherited from DbProviderFactory) |
CanCreateDataSourceEnumerator |
Gets a value that indicates whether a SqlDataSourceEnumerator can be created. |
CanCreateDataSourceEnumerator |
Gets a value that indicates whether this DbProviderFactory instance supports the DbDataSourceEnumerator class. (Inherited from DbProviderFactory) |
Methods
CreateBatch() |
Returns a new instance of the provider's class that implements the DbBatch class. (Inherited from DbProviderFactory) |
CreateBatchCommand() |
Returns a new instance of the provider's class that implements the DbBatchCommand class. (Inherited from DbProviderFactory) |
CreateCommand() |
Returns a strongly typed DbCommand instance. |
CreateCommandBuilder() |
Returns a strongly typed DbCommandBuilder instance. |
CreateCommandBuilder() |
Returns a new instance of the provider's class that implements the DbCommandBuilder class. (Inherited from DbProviderFactory) |
CreateConnection() |
Returns a strongly typed DbConnection instance. |
CreateConnectionStringBuilder() |
Returns a strongly typed DbConnectionStringBuilder instance. |
CreateDataAdapter() |
Returns a strongly typed DbDataAdapter instance. |
CreateDataAdapter() |
Returns a new instance of the provider's class that implements the DbDataAdapter class. (Inherited from DbProviderFactory) |
CreateDataSource(String) |
Returns a new instance of the provider's class that implements the DbDataSource class, representing the database for the given connection string and ready to hand out connections to it. (Inherited from DbProviderFactory) |
CreateDataSourceEnumerator() |
Returns a new SqlDataSourceEnumerator. |
CreateDataSourceEnumerator() |
Returns a new instance of the provider's class that implements the DbDataSourceEnumerator class. (Inherited from DbProviderFactory) |
CreateParameter() |
Returns a strongly typed DbParameter instance. |
CreatePermission(PermissionState) |
Returns a new CodeAccessPermission. |
CreatePermission(PermissionState) |
Returns a new instance of the provider's class that implements the provider's version of the CodeAccessPermission class. (Inherited from DbProviderFactory) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Explicit Interface Implementations
IServiceProvider.GetService(Type) |
For a description of this member, see GetService(Type). |
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기