ColumnBuilder.Byte 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| Byte(Nullable<Boolean>, Boolean, Nullable<Byte>, String, String, String) |
建立新的資料行定義來儲存 Byte 資料。 |
| Byte(Nullable<Boolean>, Boolean, Nullable<Byte>, String, String, String, IDictionary<String,AnnotationValues>) |
建立新的資料行定義來儲存 Byte 資料。 Entity Framework 移轉 API 並非設計來接受不受信任的來源所提供的輸入, (例如應用程式的使用者) 。 如果從這類來源接受輸入,則應該先加以驗證,再傳遞至這些 API 以防範 SQL 插入式攻擊等。 |
Byte(Nullable<Boolean>, Boolean, Nullable<Byte>, String, String, String)
建立新的資料行定義來儲存 Byte 資料。
public System.Data.Entity.Migrations.Model.ColumnModel Byte (Nullable<bool> nullable = null, bool identity = false, Nullable<byte> defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null);
member this.Byte : Nullable<bool> * bool * Nullable<byte> * string * string * string -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Byte (Optional nullable As Nullable(Of Boolean) = null, Optional identity As Boolean = false, Optional defaultValue As Nullable(Of Byte) = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null) As ColumnModel
參數
- identity
- Boolean
值,指出資料庫是否會在插入期間產生此資料行的值。
- defaultValueSql
- String
作為這個資料行預設值的 SQL 運算式。
- name
- String
資料行名稱。
- storeType
- String
要用於此資料行的提供者特定資料類型。
傳回
新建構的資料行定義。
適用於
Byte(Nullable<Boolean>, Boolean, Nullable<Byte>, String, String, String, IDictionary<String,AnnotationValues>)
建立新的資料行定義來儲存 Byte 資料。
Entity Framework 移轉 API 並非設計來接受不受信任的來源所提供的輸入, (例如應用程式的使用者) 。 如果從這類來源接受輸入,則應該先加以驗證,再傳遞至這些 API 以防範 SQL 插入式攻擊等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public System.Data.Entity.Migrations.Model.ColumnModel Byte (Nullable<bool> nullable = null, bool identity = false, Nullable<byte> 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.Byte : Nullable<bool> * bool * Nullable<byte> * string * string * string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Byte (Optional nullable As Nullable(Of Boolean) = null, Optional identity As Boolean = false, Optional defaultValue As Nullable(Of Byte) = 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
參數
- identity
- Boolean
值,指出資料庫是否會在插入期間產生此資料行的值。
- defaultValueSql
- String
作為這個資料行預設值的 SQL 運算式。
- name
- String
資料行名稱。
- storeType
- String
要用於此資料行的提供者特定資料類型。
- annotations
- IDictionary<String,AnnotationValues>
自訂批註通常是來自 Code First 模型。
傳回
新建構的資料行定義。
- 屬性