SqlitePropertyBuilderExtensions.HasSrid 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| HasSrid(PropertyBuilder, Int32) |
設定屬性映射到的欄位 SRID,當針對 SQLite 時。 |
| HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean) |
設定屬性映射到的欄位 SRID,當針對 SQLite 時。 |
| HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32) |
設定屬性映射到的欄位 SRID,當針對 SQLite 時。 |
HasSrid(PropertyBuilder, Int32)
設定屬性映射到的欄位 SRID,當針對 SQLite 時。
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)
設定屬性映射到的欄位 SRID,當針對 SQLite 時。
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
正在配置的物業的建商。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
如果設定是套用,則使用同一個建構者實例, null 否則。
備註
更多資訊與範例請參見「 空間資料」及 「使用 EF Core 存取 SQLite 資料庫 」。
適用於
HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)
設定屬性映射到的欄位 SRID,當針對 SQLite 時。
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 資料庫 」。