IConventionEntityTypeBuilder.RemoveUnusedShadowProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use RemoveUnusedImplicitProperties
Removes shadow properties in the given list if they are not part of any metadata object.
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
Parameters
- properties
- IReadOnlyList<IConventionProperty>
The properties to remove.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework