Jazyk

SqlServerPropertyBuilderExtensions.CanSetValueGenerationStrategy Metoda

Definice

Přetížení

Název Description
CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Vrátí hodnotu určující, zda je daná hodnota možné nastavit jako strategii generování hodnot.

CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

Vrátí hodnotu určující, jestli se daná hodnota dá nastavit jako strategie generování hodnot pro konkrétní tabulku.

CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs

Vrátí hodnotu určující, zda je daná hodnota možné nastavit jako strategii generování hodnot.

public static bool CanSetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? valueGenerationStrategy, bool fromDataAnnotation = false);
static member CanSetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * bool -> bool
<Extension()>
Public Function CanSetValueGenerationStrategy (propertyBuilder As IConventionPropertyBuilder, valueGenerationStrategy As Nullable(Of SqlServerValueGenerationStrategy), Optional fromDataAnnotation As Boolean = false) As Boolean

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

valueGenerationStrategy
Nullable<SqlServerValueGenerationStrategy>

Strategie generování hodnot.

fromDataAnnotation
Boolean

Určuje, jestli byla konfigurace zadána pomocí datové poznámky.

Návraty

true pokud lze danou hodnotu nastavit jako výchozí strategii generování hodnot.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relacía přístup k databázím SQL Server a Azure SQL pomocí EF Core.

Platí pro

CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqlServerValueGenerationStrategy>, StoreObjectIdentifier, Boolean)

Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs
Zdroj:
SqlServerPropertyBuilderExtensions.cs

Vrátí hodnotu určující, jestli se daná hodnota dá nastavit jako strategie generování hodnot pro konkrétní tabulku.

public static bool CanSetValueGenerationStrategy(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy? valueGenerationStrategy, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member CanSetValueGenerationStrategy : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy> * StoreObjectIdentifier * bool -> bool
<Extension()>
Public Function CanSetValueGenerationStrategy (propertyBuilder As IConventionPropertyBuilder, valueGenerationStrategy As Nullable(Of SqlServerValueGenerationStrategy), ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametry

propertyBuilder
IConventionPropertyBuilder

Tvůrce pro konfigurovanou vlastnost.

valueGenerationStrategy
Nullable<SqlServerValueGenerationStrategy>

Strategie generování hodnot.

storeObject
StoreObjectIdentifier

Identifikátor tabulky.

fromDataAnnotation
Boolean

Určuje, jestli byla konfigurace zadána pomocí datové poznámky.

Návraty

true pokud lze danou hodnotu nastavit jako výchozí strategii generování hodnot.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relacía přístup k databázím SQL Server a Azure SQL pomocí EF Core.

Platí pro