共用方式為


ModelValidator.ValidateDefiningNavigations 方法

定義

多載

ValidateDefiningNavigations(IModel)

此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

ValidateDefiningNavigations(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
已淘汰.

驗證在模型中定義導覽的對應/組態。

ValidateDefiningNavigations(IModel)

此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

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

參數

model
IModel

適用於

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

警告

此 API 現已淘汰。

驗證在模型中定義導覽的對應/組態。

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

參數

model
IModel

要驗證的模型。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的記錄器。

屬性

適用於