mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update README.md
This commit is contained in:
parent
134e7db111
commit
ac1af0348c
@ -294,12 +294,8 @@ public int TestId { get; set; }
|
|||||||
//1. no result
|
//1. no result
|
||||||
var result = db.UseTran(() =>
|
var result = db.UseTran(() =>
|
||||||
{
|
{
|
||||||
var beginCount = db.Queryable<Student>().Count();
|
|
||||||
db.Ado.ExecuteCommand("delete student");
|
db.Ado.ExecuteCommand("delete student");
|
||||||
var endCount = db.Queryable<Student>().Count();
|
|
||||||
throw new Exception("error haha");
|
|
||||||
});
|
});
|
||||||
var count = db.Queryable<Student>().Count();
|
|
||||||
|
|
||||||
|
|
||||||
//2 has result
|
//2 has result
|
||||||
|
Loading…
Reference in New Issue
Block a user