EntityProviderFactory 类

定义

表示一组方法,这些方法用于创建数据源类的提供程序实现的实例。Represents a set of methods for creating instances of a provider's implementation of the data source classes.

public ref class EntityProviderFactory sealed : System::Data::Common::DbProviderFactory, IServiceProvider
public sealed class EntityProviderFactory : System.Data.Common.DbProviderFactory, IServiceProvider
type EntityProviderFactory = class
    inherit DbProviderFactory
    interface IServiceProvider
Public NotInheritable Class EntityProviderFactory
Inherits DbProviderFactory
Implements IServiceProvider
继承
EntityProviderFactory
实现

注解

EntityProviderFactory 为获取 System.Data.EntityClient 类提供了一个公共入口点。The EntityProviderFactory provides a common entry point to obtain System.Data.EntityClient classes.

有关如何使用EntityProviderFactory的概念信息, 请参阅ADO.NET 实体框架DbProviderFactoriesFor conceptual information about how to use EntityProviderFactory, see ADO.NET Entity Framework and DbProviderFactories.

字段

Instance

EntityProviderFactory 实例。This EntityProviderFactory instance.

属性

CanCreateCommandBuilder

获取一个值,该值指示此 DbProviderFactory 是否支持 DbCommandBuilder 类。Gets a value that indicates whether this DbProviderFactory instance supports the DbCommandBuilder class.

(继承自 DbProviderFactory)
CanCreateDataAdapter

获取一个值,该值指示此 DbProviderFactory 是否支持 DbDataAdapter 类。Gets a value that indicates whether this DbProviderFactory instance supports the DbDataAdapter class.

(继承自 DbProviderFactory)
CanCreateDataSourceEnumerator

获取一个值,该值指示此 DbProviderFactory 是否支持 DbDataSourceEnumerator 类。Gets a value that indicates whether this DbProviderFactory instance supports the DbDataSourceEnumerator class.

(继承自 DbProviderFactory)

方法

CreateCommand()

返回实现 EntityCommand 类的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the EntityCommand class.

CreateCommandBuilder()

引发 NotSupportedExceptionThrows a NotSupportedException. 当前不支持该方法。This method is currently not supported.

CreateConnection()

返回实现 EntityConnection 类的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the EntityConnection class.

CreateConnectionStringBuilder()

返回实现 EntityConnectionStringBuilder 类的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the EntityConnectionStringBuilder class.

CreateDataAdapter()

此版本的 CreateDataAdapter() 中不支持 .NET Framework.NET FrameworkCreateDataAdapter() is not supported in this version of the .NET Framework.NET Framework.

CreateDataSourceEnumerator()

返回实现 DbDataSourceEnumerator 类的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the DbDataSourceEnumerator class.

(继承自 DbProviderFactory)
CreateParameter()

返回实现 EntityParameter 类的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the EntityParameter class.

CreatePermission(PermissionState)

返回实现 CodeAccessPermission 类的提供程序版本的提供程序类的一个新实例。Returns a new instance of the provider's class that implements the provider's version of the CodeAccessPermission class.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IServiceProvider.GetService(Type)

返回请求的 IServiceProvider 类。Returns the requested IServiceProvider class.

适用于