Udostępnij za pośrednictwem


SqlServerPropertyExtensions.SetValueGenerationStrategy Method

Definition

Overloads

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

Sets the SqlServerValueGenerationStrategy to use for the property.

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Sets the SqlServerValueGenerationStrategy to use for the property.

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * StoreObjectIdentifier -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (property As IMutableProperty, value As Nullable(Of SqlServerValueGenerationStrategy), ByRef storeObject As StoreObjectIdentifier)

Parameters

property
IMutableProperty

The property.

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to use.

storeObject
StoreObjectIdentifier

The identifier of the table containing the column.

Applies to

SetValueGenerationStrategy(IMutableProperty, Nullable<SqlServerValueGenerationStrategy>)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

Sets the SqlServerValueGenerationStrategy to use for the property.

public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (property As IMutableProperty, value As Nullable(Of SqlServerValueGenerationStrategy))

Parameters

property
IMutableProperty

The property.

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to use.

Applies to

SetValueGenerationStrategy(IMutableRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides overrides, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableRelationalPropertyOverrides * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> -> unit
<Extension()>
Public Sub SetValueGenerationStrategy (overrides As IMutableRelationalPropertyOverrides, value As Nullable(Of SqlServerValueGenerationStrategy))

Parameters

overrides
IMutableRelationalPropertyOverrides

The property overrides.

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to use.

Applies to

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

Sets the SqlServerValueGenerationStrategy to use for the property.

public static void SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> unit
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Sub SetValueGenerationStrategy (property As IConventionProperty, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetValueGenerationStrategy (property As IConventionProperty, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)

Parameters

property
IConventionProperty

The property.

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to use.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides overrides, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionRelationalPropertyOverrides * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function SetValueGenerationStrategy (overrides As IConventionRelationalPropertyOverrides, value As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)

Parameters

overrides
IConventionRelationalPropertyOverrides

The property overrides.

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to use.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetValueGenerationStrategy(IConventionProperty, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs
Source:
SqlServerPropertyExtensions.cs

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? SetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? value, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member SetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * StoreObjectIdentifier * bool -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function SetValueGenerationStrategy (property As IConventionProperty, value As Nullable(Of SqlServerValueGenerationStrategy), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Nullable(Of SqlServerValueGenerationStrategy)

Parameters

property
IConventionProperty

The property.

value
Nullable<SqlServerValueGenerationStrategy>

The strategy to use.

storeObject
StoreObjectIdentifier

The identifier of the table containing the column.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to