語言

ColumnBuilder.Geometry 方法

定義

多載

名稱 Description
Geometry(Nullable<Boolean>, DbGeometry, String, String, String, IDictionary<String,AnnotationValues>)

建立新的欄位定義來儲存幾何資料。

實體框架遷移 API 並非設計用來接受不受信任來源(例如應用程式的最終使用者)提供的輸入。 若接受來自這些來源的輸入,應在傳遞給這些 API 前進行驗證,以防止 SQL 注入攻擊等攻擊。

Geometry(Nullable<Boolean>, DbGeometry, String, String, String)

建立新的欄位定義來儲存幾何資料。

Geometry(Nullable<Boolean>, DbGeometry, String, String, String, IDictionary<String,AnnotationValues>)

建立新的欄位定義來儲存幾何資料。

實體框架遷移 API 並非設計用來接受不受信任來源(例如應用程式的最終使用者)提供的輸入。 若接受來自這些來源的輸入,應在傳遞給這些 API 前進行驗證,以防止 SQL 注入攻擊等攻擊。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public System.Data.Entity.Migrations.Model.ColumnModel Geometry(Nullable<bool> nullable = null, System.Data.Entity.Spatial.DbGeometry defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, System.Collections.Generic.IDictionary<string,System.Data.Entity.Infrastructure.Annotations.AnnotationValues> annotations = null);
member this.Geometry : Nullable<bool> * System.Data.Entity.Spatial.DbGeometry * string * string * string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Geometry (Optional nullable As Nullable(Of Boolean) = null, Optional defaultValue As DbGeometry = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null, Optional annotations As IDictionary(Of String, AnnotationValues) = null) As ColumnModel

參數

nullable
Nullable<Boolean>

值表示欄位是否允許空值。

defaultValue
DbGeometry

常數值作為此欄位的預設值。

defaultValueSql
String

SQL 運算式作為本欄的預設值。

name
String

欄位名稱。

storeType
String

此欄位所用的提供者專用資料類型。

annotations
IDictionary<String,AnnotationValues>

自訂註解通常來自 Code First 模型。

傳回

新建的欄位定義。

屬性

適用於

Geometry(Nullable<Boolean>, DbGeometry, String, String, String)

建立新的欄位定義來儲存幾何資料。

public System.Data.Entity.Migrations.Model.ColumnModel Geometry(Nullable<bool> nullable = null, System.Data.Spatial.DbGeometry defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null);
member this.Geometry : Nullable<bool> * System.Data.Spatial.DbGeometry * string * string * string -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Geometry (Optional nullable As Nullable(Of Boolean) = null, Optional defaultValue As DbGeometry = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null) As ColumnModel

參數

nullable
Nullable<Boolean>

值表示欄位是否允許空值。

defaultValue
DbGeometry

常數值作為此欄位的預設值。

defaultValueSql
String

SQL 運算式作為本欄的預設值。

name
String

欄位名稱。

storeType
String

此欄位所用的提供者專用資料類型。

傳回

新建的欄位定義。

適用於