IConventionTypeBase.RemoveProperty 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.
Overloads
RemoveProperty(IReadOnlyProperty) |
Removes a property from this type. |
RemoveProperty(String) |
Removes a property from this type. |
RemoveProperty(IReadOnlyProperty)
Removes a property from this type.
public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? RemoveProperty (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Function RemoveProperty (property As IReadOnlyProperty) As IConventionProperty
Parameters
- property
- IReadOnlyProperty
The property to remove.
Returns
The removed property, or null
if the property was not found.
Applies to
RemoveProperty(String)
Removes a property from this type.
public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? RemoveProperty (string name);
abstract member RemoveProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Function RemoveProperty (name As String) As IConventionProperty
Parameters
- name
- String
The name of the property to remove.
Returns
The property that was removed.
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