forked from slavaxom9k/PIBD-23_Fomichev_V.S._MagicCarpet
17 lines
438 B
C#
17 lines
438 B
C#
using Microsoft.EntityFrameworkCore.Design;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MagicCarpetDatabase;
|
|
|
|
public class SampleContextFactory : IDesignTimeDbContextFactory<MagicCarpetDbContext>
|
|
{
|
|
public MagicCarpetDbContext CreateDbContext(string[] args)
|
|
{
|
|
return new MagicCarpetDbContext(new DefaultConfigurationDatabase());
|
|
}
|
|
}
|