Add project files.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Design;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Concrete
|
||||
{
|
||||
public class ConstructorContextFactory : IDesignTimeDbContextFactory<ConstructorContext>
|
||||
{
|
||||
public ConstructorContext CreateDbContext(string[] args)
|
||||
{
|
||||
var optionsBuilder = new DbContextOptionsBuilder<ConstructorContext>();
|
||||
optionsBuilder.UseSqlServer("Server=SABI\\SQLEXPRESS;Initial Catalog=CONSTRUCTOR;User ID=sa;Password=13579spP!!!!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True");
|
||||
|
||||
return new ConstructorContext(optionsBuilder.Options);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user