共用方式為


RelationalModelValidator.ValidateSharedViewCompatibility 方法

定義

多載

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

驗證模型中共用檢視的對應/組態。

ValidateSharedViewCompatibility(IReadOnlyList<IEntityType>, String, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

驗證共用指定檢視的實體類型相容性。

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

來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs

驗證模型中共用檢視的對應/組態。

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

參數

model
IModel

要驗證的模型。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的記錄器。

適用於

ValidateSharedViewCompatibility(IReadOnlyList<IEntityType>, String, String, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)

來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs
來源:
RelationalModelValidator.cs

驗證共用指定檢視的實體類型相容性。

protected virtual void ValidateSharedViewCompatibility (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> mappedTypes, string viewName, string schema, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
protected virtual void ValidateSharedViewCompatibility (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> mappedTypes, string viewName, string? schema, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateSharedViewCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * string * string * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateSharedViewCompatibility : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IEntityType> * string * string * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateSharedViewCompatibility (mappedTypes As IReadOnlyList(Of IEntityType), viewName As String, schema As String, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

參數

mappedTypes
IReadOnlyList<IEntityType>

對應的實體類型。

viewName
String

檢視名稱。

schema
String

結構描述。

logger
IDiagnosticsLogger<DbLoggerCategory.Model.Validation>

要使用的記錄器。

適用於