共用方式為


RelationalModelValidator.ValidateNoMutableKeys 方法

定義

驗證模型中可變動的對應/組態。

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

參數

model
IModel

要驗證的模型。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的記錄器。

適用於