using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace Application.ATG_Classic_App
{
///
/// Visual studio Add-Migration will detect and use this to get DbContext
///
public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory
{
public AppDbContext CreateDbContext(string[] args)
{
var option = new DbContextOptionsBuilder()
.UseSqlite("Data Source=Application.ATG_Classic_App_database.db").Options;
return new AppDbContext(option);
return new AppDbContext();
}
}
}