当前位置:Gxlcms > 数据库问题 > sql sugar

sql sugar

时间:2021-07-01 10:21:17 帮助过:12人阅读

(var db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = Config.xxx, DbType = SqlSugar.DbType.MySql })) { try { db.Ado.BeginTran(); var count = db.Updateable(flow).ExecuteCommand(); if (count != 1) throw new Exception(); db.Ado.CommitTran(); return 1; } catch (Exception) { db.Ado.RollbackTran(); return 0; } }

 

sql sugar

标签:mit   type   exec   nconf   connect   xxx   color   ack   logs   

人气教程排行