語言

RelationalPropertyAnnotations.SetFixedLength(Boolean) 方法

定義

將屬性配置為僅能儲存固定長度的資料,例如字串。

protected virtual bool SetFixedLength(bool fixedLength);
abstract member SetFixedLength : bool -> bool
override this.SetFixedLength : bool -> bool
Protected Overridable Function SetFixedLength (fixedLength As Boolean) As Boolean

參數

fixedLength
Boolean

一個表示該性質是否受限於固定長度值的值。

傳回

True 如果可以設定 該值; false 否則,

適用於