16 lines
447 B
C#
16 lines
447 B
C#
using Microsoft.EntityFrameworkCore.Design;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SmallSoftwareDatabase;
|
|
|
|
internal class SampleContextFactory : IDesignTimeDbContextFactory<SmallSoftwareDbContext>
|
|
{
|
|
public SmallSoftwareDbContext CreateDbContext(string[] args)
|
|
{
|
|
return new SmallSoftwareDbContext(new DefaultConfigurationDatabase());
|
|
}
|
|
} |