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