ModelContainerConvention.Apply-Methode
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Wendet die Konvention auf das angegebene Modell an.
Namespace: System.Data.Entity.Infrastructure
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public Overridable Sub Apply ( _
item As EntityContainer, _
model As DbModel _
)
'Usage
Dim instance As ModelContainerConvention
Dim item As EntityContainer
Dim model As DbModel
instance.Apply(item, model)
public virtual void Apply(
EntityContainer item,
DbModel model
)
public:
virtual void Apply(
EntityContainer^ item,
DbModel^ model
)
abstract Apply :
item:EntityContainer *
model:DbModel -> unit
override Apply :
item:EntityContainer *
model:DbModel -> unit
public function Apply(
item : EntityContainer,
model : DbModel
)
Parameter
- item
Typ: System.Data.Entity.Core.Metadata.Edm.EntityContainer
Der Container, auf den die Konvention angewendet werden soll.
- model
Typ: System.Data.Entity.Infrastructure.DbModel
Das Modell.
Implements
IConceptualModelConvention<T>.Apply(T, DbModel)