默认字符串长度200
This commit is contained in:
parent
fc4d655514
commit
73d0e32574
|
@ -25,9 +25,11 @@ namespace CalendarNotepad.Extends
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void DbInit() {
|
public void DbInit() {
|
||||||
using var db = new DbContext();
|
using var db = new DbContext();
|
||||||
|
db.CodeFirst.SetStringDefaultLength(200);
|
||||||
db.CodeFirst.InitTables<WorkUnit>();
|
db.CodeFirst.InitTables<WorkUnit>();
|
||||||
db.CodeFirst.InitTables<PlusFileUnit>();
|
db.CodeFirst.InitTables<PlusFileUnit>();
|
||||||
db.CodeFirst.InitTables<WorkUnitPlusFile>();
|
db.CodeFirst.InitTables<WorkUnitPlusFile>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user