共用方式為


SqlitePropertyBuilderExtensions.ForSqliteHasSrid 方法

定義

多載

ForSqliteHasSrid(PropertyBuilder, Int32)
已淘汰.

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

ForSqliteHasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)
已淘汰.

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

ForSqliteHasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)
已淘汰.

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

ForSqliteHasSrid(PropertyBuilder, Int32)

警告

Use HasSrid

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

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

參數

propertyBuilder
PropertyBuilder

要設定之屬性的產生器。

srid
Int32

SRID。

傳回

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

屬性

適用於

ForSqliteHasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

警告

Use HasSrid

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

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

參數

propertyBuilder
IConventionPropertyBuilder

要設定之屬性的產生器。

srid
Nullable<Int32>

SRID。

fromDataAnnotation
Boolean

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

傳回

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

屬性

適用於

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

警告

Use HasSrid

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

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

類型參數

TProperty

參數

propertyBuilder
PropertyBuilder<TProperty>

要設定之屬性的產生器。

srid
Int32

SRID。

傳回

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

屬性

適用於