Fixed DbContext
This commit is contained in:
@@ -8,16 +8,16 @@ namespace Models
|
||||
{
|
||||
public class LuminousContext : DbContext
|
||||
{
|
||||
public LuminousContext(): base("name=LuminousContext")
|
||||
{
|
||||
|
||||
}
|
||||
public DbSet<User> User { get; set; }
|
||||
public DbSet<Role> Role { get; set; }
|
||||
public DbSet<Permission> Permission { get; set; }
|
||||
public DbSet<Product> Product { get; set; }
|
||||
public DbSet<Deal> Deal{ get; set; }
|
||||
public DbSet<Stock> Stock { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(
|
||||
@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security=True");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user