diff --git a/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs index c3b7d5d28..b9f7fc8c7 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs @@ -366,8 +366,7 @@ namespace SqlSugar //} if (item.IsIdentity && !item.IsPrimarykey) { - item.IsPrimarykey = true; - //Check.Exception(item.DataType == "integer", "Identity only integer type"); + Check.Exception(true, "Identity only primary key"); } } } diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs index 77018eb20..f39f63cbe 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Sqlite/DbMaintenance/SqliteDbMaintenance.cs @@ -410,8 +410,7 @@ namespace SqlSugar //} if (item.IsIdentity && !item.IsPrimarykey) { - item.IsPrimarykey = true; - //Check.Exception(item.DataType == "integer", "Identity only integer type"); + Check.Exception(true, "Identity only primary key"); } } }