IUpdateEntry.SetStoreGeneratedValue Method

Definition

Overloads

SetStoreGeneratedValue(IProperty, Object)

Assign a store-generated value to the property.

SetStoreGeneratedValue(IProperty, Object, Boolean)

Assign a store-generated value to the property.

SetStoreGeneratedValue(IProperty, Object)

Assign a store-generated value to the property.

public void SetStoreGeneratedValue (Microsoft.EntityFrameworkCore.Metadata.IProperty property, object value);
public void SetStoreGeneratedValue (Microsoft.EntityFrameworkCore.Metadata.IProperty property, object? value);
abstract member SetStoreGeneratedValue : Microsoft.EntityFrameworkCore.Metadata.IProperty * obj -> unit
Public Sub SetStoreGeneratedValue (property As IProperty, value As Object)

Parameters

property
IProperty

The property to set the value for.

value
Object

The value to set.

Applies to

SetStoreGeneratedValue(IProperty, Object, Boolean)

Assign a store-generated value to the property.

public void SetStoreGeneratedValue (Microsoft.EntityFrameworkCore.Metadata.IProperty property, object? value, bool setModified = true);
abstract member SetStoreGeneratedValue : Microsoft.EntityFrameworkCore.Metadata.IProperty * obj * bool -> unit
Public Sub SetStoreGeneratedValue (property As IProperty, value As Object, Optional setModified As Boolean = true)

Parameters

property
IProperty

The property to set the value for.

value
Object

The value to set.

setModified
Boolean

Whether to set the store-generated property's state to Modified.

Applies to