public bool TranInvoke(Action action) { var result = db.Ado.UseTran(() => { action.Invoke(); }); if (result.IsSuccess) { return(true); } else { SqlLog.Fault($"{DateTime.Now}事务异常 \n{result.ErrorMessage}\n\n"); return(false); } }