IConventionEntityTypeBuilder.RemoveUnusedShadowProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use RemoveUnusedImplicitProperties
如果陰影屬性不屬於任何中繼資料物件,則會移除指定清單中的陰影屬性。
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder RemoveUnusedShadowProperties (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
[System.Obsolete("Use RemoveUnusedImplicitProperties")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder RemoveUnusedShadowProperties (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
abstract member RemoveUnusedShadowProperties : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
[<System.Obsolete("Use RemoveUnusedImplicitProperties")>]
abstract member RemoveUnusedShadowProperties : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
override this.RemoveUnusedShadowProperties : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function RemoveUnusedShadowProperties (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Public Overridable Function RemoveUnusedShadowProperties (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
參數
- properties
- IReadOnlyList<IConventionProperty>
要移除的屬性。
- fromDataAnnotation
- Boolean
指出是否已使用資料批註指定組態。
傳回
- 屬性