Files
Pibd-21_Semin_D.A._SmallSof…/SmallSoftwareProject/SmallSoftwareDatabase/SampleContextFactory.cs
2025-04-17 18:07:41 +04:00

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());
}
}