18 lines
640 B
C#
18 lines
640 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Design;
|
|
using Microsoft.EntityFrameworkCore.Internal;
|
|
|
|
namespace FWLAZData
|
|
{
|
|
internal class ContextFactory : IDesignTimeDbContextFactory<LocalDbContext>
|
|
{
|
|
// public LocalDbContext CreateDbContext(string[] args) => new(new DbContextOptionsBuilder<LocalDbContext>().UseSqlite(args[0]).Options);
|
|
public LocalDbContext CreateDbContext(string[] args) => new(new DbContextOptionsBuilder<LocalDbContext>().Options);
|
|
}
|
|
}
|