Share via


SqlitePropertyExtensions.SetSrid 方法

定義

多載

SetSrid(IMutableProperty, Nullable<Int32>)

設定在建立此屬性的資料行時要使用的 SRID。

SetSrid(IConventionProperty, Nullable<Int32>, Boolean)

設定在建立此屬性的資料行時要使用的 SRID。

SetSrid(IMutableProperty, Nullable<Int32>)

設定在建立此屬性的資料行時要使用的 SRID。

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

參數

property
IMutableProperty

屬性。

value
Nullable<Int32>

SRID。

適用於

SetSrid(IConventionProperty, Nullable<Int32>, Boolean)

設定在建立此屬性的資料行時要使用的 SRID。

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

參數

property
IConventionProperty

屬性。

value
Nullable<Int32>

SRID。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

適用於