46 lines
970 B
C#
46 lines
970 B
C#
using NLog;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Liman.CadCam
|
|
{
|
|
public class DbAdmin : IDisposable
|
|
{
|
|
#region Private Fields
|
|
|
|
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
|
|
|
|
#endregion Private Fields
|
|
|
|
#region Public Constructors
|
|
|
|
public DbAdmin()
|
|
{
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Methods
|
|
|
|
public static async Task<bool> migrateDbMain(string connString)
|
|
{
|
|
bool answ = false;
|
|
using (LicManMdbContext dbCtx = new LicManMdbContext(connString))
|
|
{
|
|
await Task.Delay(1);
|
|
//await dbCtx.Database.MigrateAsync();
|
|
answ = true;
|
|
}
|
|
return answ;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |