Uredi

Deli z drugimi prek


EntityProviderFactory Class

Definition

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
Inheritance
EntityProviderFactory
Implements

Remarks

The EntityProviderFactory provides a common entry point to obtain System.Data.EntityClient classes.

For conceptual information about how to use EntityProviderFactory, see ADO.NET Entity Framework and DbProviderFactories.

Fields

Instance

This EntityProviderFactory instance.

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 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 new instance of the provider's class that implements the EntityCommand class.

CreateCommandBuilder()

Throws a NotSupportedException. This method is currently not supported.

CreateConnection()

Returns a new instance of the provider's class that implements the EntityConnection class.

CreateConnectionStringBuilder()

Returns a new instance of the provider's class that implements the EntityConnectionStringBuilder class.

CreateDataAdapter()

CreateDataAdapter() is not supported in this version of the .NET Framework.

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 instance of the provider's class that implements the DbDataSourceEnumerator class.

(Inherited from DbProviderFactory)
CreateParameter()

Returns a new instance of the provider's class that implements the EntityParameter class.

CreatePermission(PermissionState)

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.

(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)

Returns the requested IServiceProvider class.

Extension Methods

GetKeyedService<T>(IServiceProvider, Object)

Get service of type T from the IServiceProvider.

GetKeyedServices(IServiceProvider, Type, Object)

Get an enumeration of services of type serviceType from the IServiceProvider.

GetKeyedServices<T>(IServiceProvider, Object)

Get an enumeration of services of type T from the IServiceProvider.

GetRequiredKeyedService(IServiceProvider, Type, Object)

Get service of type serviceType from the IServiceProvider.

GetRequiredKeyedService<T>(IServiceProvider, Object)

Get service of type T from the IServiceProvider.

CreateAsyncScope(IServiceProvider)

Creates a new AsyncServiceScope that can be used to resolve scoped services.

CreateScope(IServiceProvider)

Creates a new IServiceScope that can be used to resolve scoped services.

GetRequiredService(IServiceProvider, Type)

Get service of type serviceType from the IServiceProvider.

GetRequiredService<T>(IServiceProvider)

Get service of type T from the IServiceProvider.

GetService<T>(IServiceProvider)

Get service of type T from the IServiceProvider.

GetServices(IServiceProvider, Type)

Get an enumeration of services of type serviceType from the IServiceProvider.

GetServices<T>(IServiceProvider)

Get an enumeration of services of type T from the IServiceProvider.

GetFakeLogCollector(IServiceProvider)

Gets the object that collects log records sent to the fake logger.

GetFakeRedactionCollector(IServiceProvider)

Gets the fake redactor collector instance from the dependency injection container.

Applies to