共用方式為


ModelValidator.ValidateIgnoredMembers 方法

定義

驗證不會嘗試忽略繼承的屬性。

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

參數

model
IModel

模型本身。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的記錄器。

適用於