PropertyValues.GetValue Method

Definition

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)

Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs

Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter.

C#
public abstract TValue GetValue<TValue> (Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Type Parameters

TValue

The type of the property.

Parameters

property
IProperty

The property.

Returns

TValue

The value of the property.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

GetValue<TValue>(String)

Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs
Source:
PropertyValues.cs

Gets the value of the property just like using the indexed property getter but typed to the type of the generic parameter.

C#
public abstract TValue GetValue<TValue> (string propertyName);

Type Parameters

TValue

The type of the property.

Parameters

propertyName
String

The property name.

Returns

TValue

The value of the property.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0