MetadataWorkspace.LoadFromAssembly 方法 (Assembly)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
從指定的組件 (Assembly) 載入中繼資料。
命名空間: System.Data.Entity.Core.Metadata.Edm
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Overridable Sub LoadFromAssembly ( _
assembly As Assembly _
)
'用途
Dim instance As MetadataWorkspace
Dim assembly As [Assembly]
instance.LoadFromAssembly(assembly)
public virtual void LoadFromAssembly(
Assembly assembly
)
public:
virtual void LoadFromAssembly(
Assembly^ assembly
)
abstract LoadFromAssembly :
assembly:Assembly -> unit
override LoadFromAssembly :
assembly:Assembly -> unit
public function LoadFromAssembly(
assembly : Assembly
)
參數
- assembly
類型:System.Reflection.Assembly
會從其載入中繼資料的組件。