Поделиться через


ModelValidator.ValidateRelationships Метод

Определение

Проверяет связи.

protected virtual void ValidateRelationships (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateRelationships : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateRelationships : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateRelationships (model As IModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

Параметры

model
IModel

Модель.

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

Используемое средство ведения журнала.

Применяется к