ModelValidator.ValidateNoMutableKeys 方法

定义

重载

ValidateNoMutableKeys(IModel)

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

ValidateNoMutableKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

验证模型中可变的映射/配置。

ValidateNoMutableKeys(IModel)

此 API 支持 Entity Framework Core 基础结构,不应直接从代码使用。 将来的版本中可能会更改或删除此 API。

protected virtual void ValidateNoMutableKeys (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member ValidateNoMutableKeys : Microsoft.EntityFrameworkCore.Metadata.IModel -> unit
override this.ValidateNoMutableKeys : Microsoft.EntityFrameworkCore.Metadata.IModel -> unit
Protected Overridable Sub ValidateNoMutableKeys (model As IModel)

参数

model
IModel

适用于

ValidateNoMutableKeys(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

验证模型中可变的映射/配置。

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

参数

model
IModel

要验证的模型。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的记录器。

适用于