Udostępnij przez


ColumnBuilder.Geography Metoda

Definicja

Przeciążenia

Geography(Nullable<Boolean>, DbGeography, String, String, String)

Tworzy nową definicję kolumny do przechowywania danych geograficznych.

Geography(Nullable<Boolean>, DbGeography, String, String, String, IDictionary<String,AnnotationValues>)

Tworzy nową definicję kolumny do przechowywania danych geograficznych.

Interfejsy API migracji platformy Entity Framework nie są przeznaczone do akceptowania danych wejściowych dostarczanych przez niezaufane źródła (na przykład użytkownika końcowego aplikacji). Jeśli dane wejściowe są akceptowane z takich źródeł, należy je zweryfikować przed przekazaniem do tych interfejsów API w celu ochrony przed atakami polegającymi na wstrzyknięciu kodu SQL itp.

Geography(Nullable<Boolean>, DbGeography, String, String, String)

Tworzy nową definicję kolumny do przechowywania danych geograficznych.

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

Parametry

nullable
Nullable<Boolean>

Wartość wskazująca, czy kolumna zezwala na wartości null.

defaultValue
DbGeography

Stała wartość do użycia jako wartość domyślna dla tej kolumny.

defaultValueSql
String

Wyrażenie SQL używane jako wartość domyślna dla tej kolumny.

name
String

Nazwa kolumny.

storeType
String

Typ danych specyficzny dla dostawcy do użycia dla tej kolumny.

Zwraca

Nowo skonstruowana definicja kolumny.

Dotyczy

Geography(Nullable<Boolean>, DbGeography, String, String, String, IDictionary<String,AnnotationValues>)

Tworzy nową definicję kolumny do przechowywania danych geograficznych.

Interfejsy API migracji platformy Entity Framework nie są przeznaczone do akceptowania danych wejściowych dostarczanych przez niezaufane źródła (na przykład użytkownika końcowego aplikacji). Jeśli dane wejściowe są akceptowane z takich źródeł, należy je zweryfikować przed przekazaniem do tych interfejsów API w celu ochrony przed atakami polegającymi na wstrzyknięciu kodu SQL itp.

[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

Parametry

nullable
Nullable<Boolean>

Wartość wskazująca, czy kolumna zezwala na wartości null.

defaultValue
DbGeography

Stała wartość do użycia jako wartość domyślna dla tej kolumny.

defaultValueSql
String

Wyrażenie SQL używane jako wartość domyślna dla tej kolumny.

name
String

Nazwa kolumny.

storeType
String

Typ danych specyficzny dla dostawcy do użycia dla tej kolumny.

annotations
IDictionary<String,AnnotationValues>

Niestandardowe adnotacje zwykle pochodzą z modelu Code First.

Zwraca

Nowo skonstruowana definicja kolumny.

Atrybuty

Dotyczy