PropertiesConfigurationBuilder.HaveMaxLength(Int32) 方法

定義

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder HaveMaxLength (int maxLength);
abstract member HaveMaxLength : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.HaveMaxLength : int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function HaveMaxLength (maxLength As Integer) As PropertiesConfigurationBuilder

參數

maxLength
Int32

屬性中允許的資料長度上限。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

適用於