EntityProviderFactory 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
類別,代表實體用戶端提供者的提供者處理站
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2302", Justification="We don't expect serviceType to be an Embedded Interop Types.")]
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
- 屬性
- 實作
欄位
Instance |
實體用戶端提供者 Factory 物件的單一物件。 這仍然是公用欄位, (不是屬性) ,因為 DbProviderFactory 需要欄位。 |
方法
CreateCommand() |
傳回提供者類別的新執行個體,該執行個體會實作 EntityCommand 類別。 |
CreateCommandBuilder() |
擲回 NotSupportedException。 目前不支援這個方法。 |
CreateConnection() |
傳回提供者類別的新執行個體,該執行個體會實作 EntityConnection 類別。 |
CreateConnectionStringBuilder() |
傳回提供者類別的新執行個體,該執行個體會實作 EntityConnectionStringBuilder 類別。 |
CreateDataAdapter() |
擲回 NotSupportedException。 目前不支援這個方法。 |
CreateParameter() |
傳回提供者類別的新執行個體,該執行個體會實作 EntityParameter 類別。 |
CreatePermission(PermissionState) |
擲回 NotSupportedException。 目前不支援這個方法。 |
明確介面實作
IServiceProvider.GetService(Type) |
傳回要求的 IServiceProvider 類別。 |