SqlitePropertyBuilderExtensions.HasSrid 方法

定義

多載

HasSrid(PropertyBuilder, Int32)

設定以 SQLite 為目標時,屬性所對應之資料行的 SRID。

HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

設定以 SQLite 為目標時,屬性所對應之資料行的 SRID。

HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)

設定以 SQLite 為目標時,屬性所對應之資料行的 SRID。

HasSrid(PropertyBuilder, Int32)

設定以 SQLite 為目標時,屬性所對應之資料行的 SRID。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int srid);
static member HasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function HasSrid (propertyBuilder As PropertyBuilder, srid As Integer) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

要設定之屬性的產生器。

srid
Int32

SRID。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱空間資料和使用 EF Core 存取 SQLite 資料庫

適用於

HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

設定以 SQLite 為目標時,屬性所對應之資料行的 SRID。

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

參數

propertyBuilder
IConventionPropertyBuilder

要設定之屬性的產生器。

srid
Nullable<Int32>

SRID。

fromDataAnnotation
Boolean

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

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

備註

如需詳細資訊和範例,請參閱空間資料和使用 EF Core 存取 SQLite 資料庫

適用於

HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)

設定以 SQLite 為目標時,屬性所對應之資料行的 SRID。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasSrid<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int srid);
static member HasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function HasSrid(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), srid As Integer) As PropertyBuilder(Of TProperty)

類型參數

TProperty

參數

propertyBuilder
PropertyBuilder<TProperty>

要設定之屬性的產生器。

srid
Int32

SRID。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱空間資料和使用 EF Core 存取 SQLite 資料庫

適用於