Share via


SqlServerPropertyExtensions.GetValueGenerationStrategy Method

Definition

Overloads

GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier)

Returns the SqlServerValueGenerationStrategy to use for the property.

GetValueGenerationStrategy(IProperty, StoreObjectIdentifier)

Returns the SqlServerValueGenerationStrategy to use for the property.

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

GetValueGenerationStrategy(IProperty)

Returns the SqlServerValueGenerationStrategy to use for the property.

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

GetValueGenerationStrategy(IReadOnlyProperty)

Returns the SqlServerValueGenerationStrategy to use for the property.

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

Returns the SqlServerValueGenerationStrategy to use for the property.

GetValueGenerationStrategy(IReadOnlyProperty, StoreObjectIdentifier)

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

Returns the SqlServerValueGenerationStrategy to use for the property.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier -> Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy
<Extension()>
Public Function GetValueGenerationStrategy (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier) As SqlServerValueGenerationStrategy

Parameters

property
IReadOnlyProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the store object.

Returns

The strategy, or None if none was set.

Remarks

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

Applies to

GetValueGenerationStrategy(IProperty, StoreObjectIdentifier)

Source:
SqlServerPropertyExtensions.cs

Returns the SqlServerValueGenerationStrategy to use for the property.

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IProperty * StoreObjectIdentifier -> Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy
<Extension()>
Public Function GetValueGenerationStrategy (property As IProperty, ByRef storeObject As StoreObjectIdentifier) As SqlServerValueGenerationStrategy

Parameters

property
IProperty

The property.

storeObject
StoreObjectIdentifier

The identifier of the store object.

Returns

The strategy, or None if none was set.

Applies to

GetValueGenerationStrategy(IProperty)

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

Returns the SqlServerValueGenerationStrategy to use for the property.

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy
<Extension()>
Public Function GetValueGenerationStrategy (property As IProperty) As SqlServerValueGenerationStrategy

Parameters

property
IProperty

The property.

Returns

The strategy, or None if none was set.

Applies to

GetValueGenerationStrategy(IReadOnlyProperty)

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

Returns the SqlServerValueGenerationStrategy to use for the property.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy
<Extension()>
Public Function GetValueGenerationStrategy (property As IReadOnlyProperty) As SqlServerValueGenerationStrategy

Parameters

property
IReadOnlyProperty

The property.

Returns

The strategy, or None if none was set.

Remarks

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

Applies to

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

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

Returns the SqlServerValueGenerationStrategy to use for the property.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? GetValueGenerationStrategy (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides overrides);
static member GetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides -> Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy>
<Extension()>
Public Function GetValueGenerationStrategy (overrides As IReadOnlyRelationalPropertyOverrides) As Nullable(Of SqlServerValueGenerationStrategy)

Parameters

overrides
IReadOnlyRelationalPropertyOverrides

The property overrides.

Returns

The strategy, or None if none was set.

Remarks

If no strategy is set for the property, then the strategy to use will be taken from the IModel.

Applies to