Browse Source

Update Check

SqlSugar5
sunkaixuan 2 years ago
parent
commit
fb1269eba4
  1. 3
      Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs
  2. 3
      Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs

3
Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs

@ -366,8 +366,7 @@ namespace SqlSugar
//} //}
if (item.IsIdentity && !item.IsPrimarykey) if (item.IsIdentity && !item.IsPrimarykey)
{ {
item.IsPrimarykey = true; Check.Exception(true, "Identity only primary key");
//Check.Exception(item.DataType == "integer", "Identity only integer type");
} }
} }
} }

3
Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs

@ -410,8 +410,7 @@ namespace SqlSugar
//} //}
if (item.IsIdentity && !item.IsPrimarykey) if (item.IsIdentity && !item.IsPrimarykey)
{ {
item.IsPrimarykey = true; Check.Exception(true, "Identity only primary key");
//Check.Exception(item.DataType == "integer", "Identity only integer type");
} }
} }
} }

Loading…
Cancel
Save