Delen via


MaterializationInterceptionData.GetPropertyValue Method

Definition

Overloads

GetPropertyValue(IPropertyBase)

Gets the property value for the given property.

GetPropertyValue(String)

Gets the property value for the property with the given name.

GetPropertyValue<T>(IPropertyBase)

Gets the property value for the given property.

GetPropertyValue<T>(String)

Gets the property value for the property with the given name.

GetPropertyValue(IPropertyBase)

Gets the property value for the given property.

public object? GetPropertyValue (Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
member this.GetPropertyValue : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> obj
Public Function GetPropertyValue (property As IPropertyBase) As Object

Parameters

property
IPropertyBase

The property.

Returns

The property value.

Remarks

This non-generic overload of this method will always cause a primitive or value-type property value to be boxed into a heap-allocated object.

Applies to

GetPropertyValue(String)

Gets the property value for the property with the given name.

public object? GetPropertyValue (string propertyName);
member this.GetPropertyValue : string -> obj
Public Function GetPropertyValue (propertyName As String) As Object

Parameters

propertyName
String

The property name.

Returns

The property value.

Remarks

This non-generic overload of this method will always cause a primitive or value-type property value to be boxed into a heap-allocated object.

Applies to

GetPropertyValue<T>(IPropertyBase)

Gets the property value for the given property.

public T GetPropertyValue<T> (Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property);
member this.GetPropertyValue : Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> 'T
Public Function GetPropertyValue(Of T) (property As IPropertyBase) As T

Type Parameters

T

Parameters

property
IPropertyBase

The property.

Returns

T

The property value.

Remarks

This generic overload of this method will not cause a primitive or value-type property value to be boxed into a heap-allocated object.

Applies to

GetPropertyValue<T>(String)

Gets the property value for the property with the given name.

public T GetPropertyValue<T> (string propertyName);
member this.GetPropertyValue : string -> 'T
Public Function GetPropertyValue(Of T) (propertyName As String) As T

Type Parameters

T

Parameters

propertyName
String

The property name.

Returns

T

The property value.

Remarks

This generic overload of this method will not cause a primitive or value-type property value to be boxed into a heap-allocated object.

Applies to