語言

StringColumnConfiguration 類別

定義

設定用於儲存字串值的資料庫欄位。 此配置功能可透過 Code First Fluent API 取得,詳見 DbModelBuilder。

public class StringColumnConfiguration : System.Data.Entity.ModelConfiguration.Configuration.LengthColumnConfiguration
type StringColumnConfiguration = class
    inherit LengthColumnConfiguration
Public Class StringColumnConfiguration
Inherits LengthColumnConfiguration
繼承

方法

名稱 Description
Equals(Object)

設定用於儲存字串值的資料庫欄位。 此配置功能可透過 Code First Fluent API 取得,詳見 DbModelBuilder。

GetHashCode()

設定用於儲存字串值的資料庫欄位。 此配置功能可透過 Code First Fluent API 取得,詳見 DbModelBuilder。

GetType()

取得目前實例的 Type。

HasColumnOrder(Nullable<Int32>)

設定資料庫欄位的順序。

HasColumnType(String)

配置資料庫欄位的資料型態。

HasMaxLength(Nullable<Int32>)

設定屬性為指定的最大長度。

IsFixedLength()

將欄位設定為固定長度。 使用 HasMaxLength 來設定該屬性固定的長度。

IsMaxLength()

將欄位設定為允許資料庫提供者支援的最大長度。

IsOptional()

將欄位設定為可選。

IsRequired()

將欄位配置為必需。

IsUnicode()

設定欄位以支援 Unicode 字串內容。

IsUnicode(Nullable<Boolean>)

設定欄位是否支援 Unicode 字串內容。

IsVariableLength()

將欄位設定為可變長度。 欄位預設為可變長度。

ToString()

設定用於儲存字串值的資料庫欄位。 此配置功能可透過 Code First Fluent API 取得,詳見 DbModelBuilder。

適用於