[성현모] Config 기능 추가, Socket Recv Json, string 기능 분리
This commit is contained in:
29
Projects/HubX/HubX.Library/DataBase/DBManager.cs
Normal file
29
Projects/HubX/HubX.Library/DataBase/DBManager.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using Azure.Core;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HubX.Library.DataBase
|
||||
{
|
||||
public class DBManager
|
||||
{
|
||||
public DBManager()
|
||||
{
|
||||
}
|
||||
|
||||
public async Task Insert<T>(T context) where T : DbContext
|
||||
{
|
||||
//using (var transaction = await context.CreateTransactionAsync())
|
||||
//{
|
||||
// if (context.TCertificates.ToList().Exists(x => x.CCuid == tbscsr.CCuid) == false)
|
||||
// {
|
||||
// await context.AddAsync(certificate);
|
||||
// }
|
||||
// transactionResult = await context.CloseTransactionAsync(transaction);
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user