Add project files.

This commit is contained in:
2025-05-01 15:18:30 +03:00
parent e058ab8015
commit 774d695414
3094 changed files with 1336814 additions and 0 deletions

View File

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