Tiger.Business/DbBase.cs
@@ -893,8 +893,11 @@ var db = Business.Biz.Db; var dbTran = db.UseTran(() => { var dbres = db.Deleteable<T>().Where(query.where).ExecuteCommand(); db.Insertable<T>(query.Items).ExecuteCommand(); var dbres = !query.where.IsNullOrEmpty() ? db.Deleteable<T>().Where(query.where).ExecuteCommand() : db.Deleteable<T>().ExecuteCommand(); if (query.Items.Count > 0) { db.Insertable<T>(query.Items).ExecuteCommand(); } }); if (!dbTran.IsSuccess) {