共用方式為


StringColumnConfiguration.HasMaxLength(Nullable<Int32>) 方法

定義

設定此屬性具有指定的最大長度。

public System.Data.Entity.ModelConfiguration.Configuration.StringColumnConfiguration HasMaxLength (Nullable<int> value);
override this.HasMaxLength : Nullable<int> -> System.Data.Entity.ModelConfiguration.Configuration.StringColumnConfiguration
Public Function HasMaxLength (value As Nullable(Of Integer)) As StringColumnConfiguration

參數

value
Nullable<Int32>

此屬性的最大長度。 設定 'null' 會導致資料行使用預設長度。

傳回

相同的 StringColumnConfiguration 實例,以便鏈結多個呼叫。

適用於