diff --git a/Server/SQL/SQL.cs b/Server/SQL/SQL.cs index 309c710..dddbea3 100644 --- a/Server/SQL/SQL.cs +++ b/Server/SQL/SQL.cs @@ -1,4 +1,5 @@ using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Storage; using Npgsql.EntityFrameworkCore.PostgreSQL; using Server.System; @@ -56,5 +57,10 @@ namespace Server.SQL //{ // return table.SingleOrDefault(data => data.name == name); //} + + /// + /// 특정 상황에 트렌젝션 롤백을 해야할때 사용 + /// + public IDbContextTransaction Transaction { get { return Database.BeginTransaction(); } } } } \ No newline at end of file