Condividi tramite


Proprietà DbContextInfo.OnModelCreating

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene o imposta un'azione da eseguire in DbModelBuilder dopo l'esecuzione di OnModelCreating nel contesto.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Overridable Property OnModelCreating As Action(Of DbModelBuilder)
    Get 
    Set
'Utilizzo
Dim instance As DbContextInfo 
Dim value As Action(Of DbModelBuilder)

value = instance.OnModelCreating

instance.OnModelCreating = value
public virtual Action<DbModelBuilder> OnModelCreating { get; set; }
public:
virtual property Action<DbModelBuilder^>^ OnModelCreating {
    Action<DbModelBuilder^>^ get ();
    void set (Action<DbModelBuilder^>^ value);
}
abstract OnModelCreating : Action<DbModelBuilder> with get, set 
override OnModelCreating : Action<DbModelBuilder> with get, set
function get OnModelCreating () : Action<DbModelBuilder>
function set OnModelCreating (value : Action<DbModelBuilder>)

Valore proprietà

Tipo: System.Action<DbModelBuilder>
Azione da eseguire in DbModelBuilder dopo l'esecuzione di OnModelCreating nel contesto.

Vedere anche

Riferimento

DbContextInfo Classe

Spazio dei nomi System.Data.Entity.Infrastructure