PropertyValues.GetValue 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
GetValue<TValue>(IProperty) |
Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter. |
GetValue<TValue>(String) |
Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter. |
GetValue<TValue>(IProperty)
Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter.
public abstract TValue GetValue<TValue> (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member GetValue : Microsoft.EntityFrameworkCore.Metadata.IProperty -> 'Value
Public MustOverride Function GetValue(Of TValue) (property As IProperty) As TValue
Type Parameters
- TValue
The type of the property.
Parameters
- property
- IProperty
The property.
Returns
The value of the property.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Applies to
GetValue<TValue>(String)
Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter.
public abstract TValue GetValue<TValue> (string propertyName);
abstract member GetValue : string -> 'Value
Public MustOverride Function GetValue(Of TValue) (propertyName As String) As TValue
Type Parameters
- TValue
The type of the property.
Parameters
- propertyName
- String
The property name.
Returns
The value of the property.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Applies to
Entity Framework