ColumnBuilder.Geography メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Geography(Nullable<Boolean>, DbGeography, String, String, String) |
地理データを格納する新しい列定義を作成します。 |
| Geography(Nullable<Boolean>, DbGeography, String, String, String, IDictionary<String,AnnotationValues>) |
地理データを格納する新しい列定義を作成します。 Entity Framework Migrations API は、信頼されていないソース (アプリケーションのエンド ユーザーなど) によって提供される入力を受け入れるようには設計されていません。 このようなソースから入力を受け入れる場合は、SQL インジェクション攻撃などから保護するために、これらの API に渡される前に検証する必要があります。 |
Geography(Nullable<Boolean>, DbGeography, String, String, String)
地理データを格納する新しい列定義を作成します。
public System.Data.Entity.Migrations.Model.ColumnModel Geography(Nullable<bool> nullable = null, System.Data.Spatial.DbGeography defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null);
member this.Geography : Nullable<bool> * System.Data.Spatial.DbGeography * string * string * string -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Geography (Optional nullable As Nullable(Of Boolean) = null, Optional defaultValue As DbGeography = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null) As ColumnModel
パラメーター
- defaultValue
- DbGeography
この列の既定値として使用する定数値。
- defaultValueSql
- String
この列の既定値として使用される SQL 式。
- name
- String
列の名前。
- storeType
- String
この列に使用するプロバイダー固有のデータ型。
戻り値
新しく構築された列定義。
適用対象
Geography(Nullable<Boolean>, DbGeography, String, String, String, IDictionary<String,AnnotationValues>)
地理データを格納する新しい列定義を作成します。
Entity Framework Migrations API は、信頼されていないソース (アプリケーションのエンド ユーザーなど) によって提供される入力を受け入れるようには設計されていません。 このようなソースから入力を受け入れる場合は、SQL インジェクション攻撃などから保護するために、これらの API に渡される前に検証する必要があります。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public System.Data.Entity.Migrations.Model.ColumnModel Geography(Nullable<bool> nullable = null, System.Data.Entity.Spatial.DbGeography 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.Geography : Nullable<bool> * System.Data.Entity.Spatial.DbGeography * string * string * string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Geography (Optional nullable As Nullable(Of Boolean) = null, Optional defaultValue As DbGeography = 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
- DbGeography
この列の既定値として使用する定数値。
- defaultValueSql
- String
この列の既定値として使用される SQL 式。
- name
- String
列の名前。
- storeType
- String
この列に使用するプロバイダー固有のデータ型。
- annotations
- IDictionary<String,AnnotationValues>
カスタム注釈は通常、Code First モデルから取得されます。
戻り値
新しく構築された列定義。
- 属性