ColumnBuilder.Geometry 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| Geometry(Nullable<Boolean>, DbGeometry, String, String, String, IDictionary<String,AnnotationValues>) |
建立新的資料行定義來儲存幾何資料。 Entity Framework 移轉 API 的設計目的不是接受未受信任來源所提供的輸入, (例如應用程式的使用者) 。 如果從這類來源接受輸入,則應該先加以驗證,再傳遞至這些 API 以防止 SQL 插入式攻擊等。 |
| Geometry(Nullable<Boolean>, DbGeometry, String, String, String) |
建立新的資料行定義來儲存幾何資料。 |
Geometry(Nullable<Boolean>, DbGeometry, String, String, String, IDictionary<String,AnnotationValues>)
建立新的資料行定義來儲存幾何資料。
Entity Framework 移轉 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
參數
- 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
參數
- defaultValue
- DbGeometry
要作為這個資料行預設值的常數值。
- defaultValueSql
- String
作為這個資料行預設值的 SQL 運算式。
- name
- String
資料行名稱。
- storeType
- String
用於此資料行的提供者特定資料類型。
傳回
新建構的資料行定義。