EntityContainerMapping 建構函式
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
初始化 EntityContainerMapping 類別的新執行個體。
命名空間: System.Data.Entity.Core.Mapping
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Sub New ( _
conceptualEntityContainer As EntityContainer, _
storeEntityContainer As EntityContainer, _
mappingItemCollection As StorageMappingItemCollection, _
generateUpdateViews As Boolean _
)
'用途
Dim conceptualEntityContainer As EntityContainer
Dim storeEntityContainer As EntityContainer
Dim mappingItemCollection As StorageMappingItemCollection
Dim generateUpdateViews As Boolean
Dim instance As New EntityContainerMapping(conceptualEntityContainer, _
storeEntityContainer, mappingItemCollection, _
generateUpdateViews)
public EntityContainerMapping(
EntityContainer conceptualEntityContainer,
EntityContainer storeEntityContainer,
StorageMappingItemCollection mappingItemCollection,
bool generateUpdateViews
)
public:
EntityContainerMapping(
EntityContainer^ conceptualEntityContainer,
EntityContainer^ storeEntityContainer,
StorageMappingItemCollection^ mappingItemCollection,
bool generateUpdateViews
)
new :
conceptualEntityContainer:EntityContainer *
storeEntityContainer:EntityContainer *
mappingItemCollection:StorageMappingItemCollection *
generateUpdateViews:bool -> EntityContainerMapping
public function EntityContainerMapping(
conceptualEntityContainer : EntityContainer,
storeEntityContainer : EntityContainer,
mappingItemCollection : StorageMappingItemCollection,
generateUpdateViews : boolean
)
參數
- conceptualEntityContainer
類型:System.Data.Entity.Core.Metadata.Edm.EntityContainer
要對應的概念性實體容器。
- storeEntityContainer
類型:System.Data.Entity.Core.Metadata.Edm.EntityContainer
要對應的存放區實體容器。
- mappingItemCollection
類型:System.Data.Entity.Core.Mapping.StorageMappingItemCollection
父代對應項目集合。
- generateUpdateViews
類型:System.Boolean
表示是否產生更新檢視的旗標。