語言

PropertiesConfigurationBuilder<TProperty>.HaveMaxLength(Int32) 方法

定義

設定此屬性中可儲存的最大資料長度。 最大長度只能設定在陣列屬性(包括 String 屬性)上。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> HaveMaxLength(int maxLength);
override this.HaveMaxLength : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
Public Overridable Function HaveMaxLength (maxLength As Integer) As PropertiesConfigurationBuilder(Of TProperty)

參數

maxLength
Int32

該物業允許的最大資料長度。

傳回

同一個建構器實例,這樣可以串接多個設定呼叫。

適用於