IMutableEntityType.GetProperty(String) Method

Definition

Gets a property with the given name.

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetProperty (string name);
abstract member GetProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
override this.GetProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Overridable Function GetProperty (name As String) As IMutableProperty

Parameters

name
String

The property name.

Returns

The property.

Remarks

This API only finds scalar properties and does not find navigation properties. Use FindNavigation(String) to find a navigation property.

Applies to