DbConfiguration.DependencyResolver 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得用於解析 Entity Framework 服務相依性的 IDbDependencyResolver。
命名空間: System.Data.Entity
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Shared ReadOnly Property DependencyResolver As IDbDependencyResolver
Get
'用途
Dim value As IDbDependencyResolver
value = DbConfiguration.DependencyResolver
public static IDbDependencyResolver DependencyResolver { get; }
public:
static property IDbDependencyResolver^ DependencyResolver {
IDbDependencyResolver^ get ();
}
static member DependencyResolver : IDbDependencyResolver
static function get DependencyResolver () : IDbDependencyResolver
屬性值
類型:System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
用於解析 Entity Framework 服務相依性的 IDbDependencyResolver。