Udostępnij przez


ColumnBuilder.Long Metoda

Definicja

Przeciążenia

Long(Nullable<Boolean>, Boolean, Nullable<Int64>, String, String, String)

Tworzy nową definicję kolumny do przechowywania danych long.

Long(Nullable<Boolean>, Boolean, Nullable<Int64>, String, String, String, IDictionary<String,AnnotationValues>)

Tworzy nową definicję kolumny do przechowywania danych long.

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

Long(Nullable<Boolean>, Boolean, Nullable<Int64>, String, String, String)

Tworzy nową definicję kolumny do przechowywania danych long.

public System.Data.Entity.Migrations.Model.ColumnModel Long (Nullable<bool> nullable = null, bool identity = false, Nullable<long> defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null);
member this.Long : Nullable<bool> * bool * Nullable<int64> * string * string * string -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Long (Optional nullable As Nullable(Of Boolean) = null, Optional identity As Boolean = false, Optional defaultValue As Nullable(Of Long) = 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.

identity
Boolean

Wartość wskazująca, czy baza danych wygeneruje wartości dla tej kolumny podczas wstawiania.

defaultValue
Nullable<Int64>

Stała wartość, która ma być używana 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

Long(Nullable<Boolean>, Boolean, Nullable<Int64>, String, String, String, IDictionary<String,AnnotationValues>)

Tworzy nową definicję kolumny do przechowywania danych long.

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public System.Data.Entity.Migrations.Model.ColumnModel Long (Nullable<bool> nullable = null, bool identity = false, Nullable<long> 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.Long : Nullable<bool> * bool * Nullable<int64> * string * string * string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Long (Optional nullable As Nullable(Of Boolean) = null, Optional identity As Boolean = false, Optional defaultValue As Nullable(Of Long) = 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.

identity
Boolean

Wartość wskazująca, czy baza danych wygeneruje wartości dla tej kolumny podczas wstawiania.

defaultValue
Nullable<Int64>

Stała wartość, która ma być używana 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>

Adnotacje niestandardowe zwykle pochodzą z modelu Code First.

Zwraca

Nowo skonstruowana definicja kolumny.

Atrybuty

Dotyczy