ModelValidator.ValidateNoShadowEntities 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ValidateNoShadowEntities(IModel) |
此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。 |
ValidateNoShadowEntities(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>) |
已淘汰.
驗證模型不包含任何沒有對應 CLR 類型的實體類型。 |
ValidateNoShadowEntities(IModel)
此 API 支援 Entity Framework Core 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
protected virtual void ValidateNoShadowEntities (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel -> unit
override this.ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel -> unit
Protected Overridable Sub ValidateNoShadowEntities (model As IModel)
參數
- model
- IModel
適用於
ValidateNoShadowEntities(IModel, IDiagnosticsLogger<DbLoggerCategory.Model.Validation>)
警告
Shadow entity types cannot be created anymore
驗證模型不包含任何沒有對應 CLR 類型的實體類型。
protected virtual void ValidateNoShadowEntities (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
[System.Obsolete("Shadow entity types cannot be created anymore")]
protected virtual void ValidateNoShadowEntities (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> logger);
abstract member ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
[<System.Obsolete("Shadow entity types cannot be created anymore")>]
abstract member ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
override this.ValidateNoShadowEntities : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> unit
Protected Overridable Sub ValidateNoShadowEntities (model As IModel, logger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))
參數
- model
- IModel
要驗證的模型。
要使用的記錄器。
- 屬性