트렌젝션 작업 추가
This commit is contained in:
parent
c7b6eaa106
commit
0661e27e84
|
|
@ -1,4 +1,5 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage;
|
||||||
using Npgsql.EntityFrameworkCore.PostgreSQL;
|
using Npgsql.EntityFrameworkCore.PostgreSQL;
|
||||||
using Server.System;
|
using Server.System;
|
||||||
|
|
||||||
|
|
@ -56,5 +57,10 @@ namespace Server.SQL
|
||||||
//{
|
//{
|
||||||
// return table.SingleOrDefault(data => data.name == name);
|
// return table.SingleOrDefault(data => data.name == name);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 특정 상황에 트렌젝션 롤백을 해야할때 사용
|
||||||
|
/// </summary>
|
||||||
|
public IDbContextTransaction Transaction { get { return Database.BeginTransaction(); } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue