DbPropertyValues.GetValue<TValue> Method (String)

 

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.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public TValue GetValue<TValue>(
	string propertyName
)

Parameters

propertyName
Type: System.String

Name of the property.

Return Value

Type: TValue

The value of the property.

Type Parameters

TValue

The type of the property.