Bagikan melalui


RelationalPropertyExtensions.SetIsFixedLength Metode

Definisi

Overload

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Mengatur bendera yang menunjukkan apakah properti hanya mampu menyimpan data panjang tetap, seperti string.

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Mengatur bendera yang menunjukkan apakah properti hanya mampu menyimpan data panjang tetap, seperti string.

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Mengatur bendera yang menunjukkan apakah properti hanya mampu menyimpan data panjang tetap, seperti string.

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

Parameter

property
IMutableProperty

Properti .

fixedLength
Nullable<Boolean>

Nilai yang menunjukkan apakah properti dibatasi untuk nilai panjang tetap.

Berlaku untuk

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Mengatur bendera yang menunjukkan apakah properti hanya mampu menyimpan data panjang tetap, seperti string.

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

Parameter

property
IConventionProperty

Properti .

fixedLength
Nullable<Boolean>

Nilai yang menunjukkan apakah properti dibatasi untuk nilai panjang tetap.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Nilai yang dikonfigurasi.

Berlaku untuk