Compartilhar via


ModelRuntimeInitializer.Initialize Método

Definição

Valida e inicializa o modelo fornecido com dependências de runtime.

public virtual Microsoft.EntityFrameworkCore.Metadata.IModel Initialize (Microsoft.EntityFrameworkCore.Metadata.IModel model, bool designTime = true, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation>? validationLogger = default);
abstract member Initialize : Microsoft.EntityFrameworkCore.Metadata.IModel * bool * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.Initialize : Microsoft.EntityFrameworkCore.Metadata.IModel * bool * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function Initialize (model As IModel, Optional designTime As Boolean = true, Optional validationLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation) = Nothing) As IModel

Parâmetros

model
IModel

O modelo a ser inicializado.

designTime
Boolean

Se o modelo deve conter a configuração de tempo de design.

validationLogger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

O agente de validação.

Retornos

O modelo inicializado.

Implementações

Aplica-se a