StoreOptions.MaxLengthForKeys 屬性

定義

如果設定為正數,則預設 OnModelCreating 會使用此值作為索引鍵使用的任何屬性的最大長度,例如 UserId、LoginProvider、ProviderKey。

public:
 property int MaxLengthForKeys { int get(); void set(int value); };
public int MaxLengthForKeys { get; set; }
member this.MaxLengthForKeys : int with get, set
Public Property MaxLengthForKeys As Integer

屬性值

適用於