ModelContainerConvention 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此 DbModelBuilder 慣例會使用衍生 DbContext 類別的名稱作為 Code First 所建置之概念模型的容器。
public class ModelContainerConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityContainer>
type ModelContainerConvention = class
interface IConceptualModelConvention<EntityContainer>
interface IConvention
Public Class ModelContainerConvention
Implements IConceptualModelConvention(Of EntityContainer)
- 繼承
-
ModelContainerConvention
- 實作
方法
Apply(EntityContainer, DbModel) |
將慣例套用至指定的模型。 |