Update Sqlite

This commit is contained in:
sunkaixuan 2017-07-09 19:58:35 +08:00
parent 0b5db835da
commit c8721af0a8
3 changed files with 12 additions and 12 deletions

View File

@ -82,7 +82,7 @@ namespace SqlSugar
{ {
get get
{ {
return "TRUNCATE TABLE {0}"; return "DELETE FROM {0}";
} }
} }
protected override string BackupTableSql protected override string BackupTableSql

View File

@ -31,18 +31,18 @@ namespace OrmTest
new Mapping(1).Init(); new Mapping(1).Init();
new DataTest(1).Init(); new DataTest(1).Init();
//// /***Performance Test***/ /***Performance Test***/
//// new SqlSugarPerformance(100).Select(); new SqlSugarPerformance(100).Select();
///***Demo***/ /***Demo***/
//OrmTest.Demo.Query.Init(); OrmTest.Demo.Query.Init();
//OrmTest.Demo.Insert.Init(); OrmTest.Demo.Insert.Init();
//OrmTest.Demo.Delete.Init(); OrmTest.Demo.Delete.Init();
//OrmTest.Demo.Update.Init(); OrmTest.Demo.Update.Init();
//OrmTest.Demo.DbFirst.Init(); OrmTest.Demo.DbFirst.Init();
//OrmTest.Demo.JoinSql.Init(); OrmTest.Demo.JoinSql.Init();
//OrmTest.Demo.Filter.Init(); OrmTest.Demo.Filter.Init();
//OrmTest.Demo.ComplexModel.Init(); OrmTest.Demo.ComplexModel.Init();
OrmTest.Demo.CodeFirst.Init(); OrmTest.Demo.CodeFirst.Init();
} }
} }