Sdílet prostřednictvím


IConventionPropertyBuilder.HasScale(Nullable<Int32>, Boolean) Metoda

Definice

Nakonfiguruje měřítko vlastnosti .

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasScale (int? scale, bool fromDataAnnotation = false);
abstract member HasScale : Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function HasScale (scale As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametry

scale
Nullable<Int32>

Měřítko vlastnosti

fromDataAnnotation
Boolean

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

Návraty

Stejná instance tvůrce, pokud byla použita konfigurace, null jinak.

Platí pro