BotSharp/BotSharp.Core/Accounts/AccountDbInitializer.cs

25 lines
566 B
C#
Raw Normal View History

2018-08-02 21:14:46 +00:00
using BotSharp.Core.Abstractions;
using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace BotSharp.Core.Accounts
{
public class AccountDbInitializer : IHookDbInitializer
{
public int Priority => 100;
public void Load(Database dc)
{
ImportAccount(dc);
}
private void ImportAccount(Database dc)
{
var dataPath = Path.Join(AppDomain.CurrentDomain.GetData("DataPath").ToString(), "Accounts");
}
}
}