ModelValidator.ValidatePrimitiveCollections 方法

定义

验证模型的基元集合属性的映射。

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

参数

model
IModel

要验证的模型。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的记录器。

适用于