From 0661e27e84bd2b3700e95d1c941dde656bf04a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=84=9C?= Date: Tue, 5 Dec 2023 13:47:18 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8A=B8=EB=A0=8C=EC=A0=9D=EC=85=98=20?= =?UTF-8?q?=EC=9E=91=EC=97=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/SQL/SQL.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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