SqlitePropertyBuilderExtensions.CanSetSrid 方法

定義

傳回值,指出指定的值是否可以設定為數據行的 SRID。

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

參數

propertyBuilder
IConventionPropertyBuilder

要設定之屬性的產生器。

srid
Nullable<Int32>

SRID。

fromDataAnnotation
Boolean

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

傳回

true 如果指定的值可以設定為數據行的 SRID,則為 。

備註

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

適用於