IConventionEntityType.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 entity type. |
RemoveProperty(String) |
Removes a property from this entity type. |
RemoveProperty(IConventionProperty) |
Removes a property from this entity type. |
RemoveProperty(IReadOnlyProperty)
Removes a property from this entity 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 entity 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
RemoveProperty(IConventionProperty)
Removes a property from this entity type.
public void RemoveProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property);
public Microsoft.EntityFrameworkCore.Metadata.IConventionProperty RemoveProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property);
abstract member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> unit
abstract member RemoveProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Sub RemoveProperty (property As IConventionProperty)
Public Function RemoveProperty (property As IConventionProperty) As IConventionProperty
Parameters
- property
- IConventionProperty
The property to remove.
Returns
The removed property.
Applies to
Entity Framework