You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
813 B
24 lines
813 B
using Microsoft.EntityFrameworkCore;
|
|
using Models;
|
|
|
|
namespace Models
|
|
{
|
|
public class PortfolioPortalDbContext : DbContext
|
|
{
|
|
public DbSet<Portfolio> Portfolios { get; set; }
|
|
public DbSet<PortfolioData> PortfolioData { get; set; }
|
|
public DbSet<AuthLevels> AuthLevels { get; set; }
|
|
public DbSet<Auth> Auths { get; set; }
|
|
public DbSet<Company> Companies { get; set; }
|
|
public DbSet<User> Users { get; set; }
|
|
public DbSet<LeafHeader> LeafHeaders { get; set; }
|
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
//FIXME: This couldn
|
|
optionsBuilder.UseSqlServer("Server=localhost,3341;Database=PortfolioPortalTest;User Id=SA;Password=LEAF-portal-test-enviroment1;");
|
|
}
|
|
}
|
|
|
|
}
|
|
|