DbPropertyValues.GetValue<TValue>(String) Method

Definition

Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter. This is useful especially with nested dictionaries to avoid writing expressions with lots of casts.

public TValue GetValue<TValue> (string propertyName);
member this.GetValue : string -> 'Value
Public Function GetValue(Of TValue) (propertyName As String) As TValue

Type Parameters

TValue

The type of the property.

Parameters

propertyName
String

Name of the property.

Returns

TValue

The value of the property.

Applies to