Creating DbContext
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace WD7UVN_HFT_2023241.Repository
|
|
||||||
{
|
|
||||||
public class Class1
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
15
WD7UVN_HFT_2023241.Repository/CompanyDbContext.cs
Normal file
15
WD7UVN_HFT_2023241.Repository/CompanyDbContext.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.InMemory;
|
||||||
|
using WD7UVN_HFT_2023241.Models;
|
||||||
|
|
||||||
|
namespace WD7UVN_HFT_2023241.Repository
|
||||||
|
{
|
||||||
|
public class CompanyDbContext : DbContext
|
||||||
|
{
|
||||||
|
public DbSet<Customer> Customers { get; set; }
|
||||||
|
public DbSet<Employee> Employees { get; set; }
|
||||||
|
public DbSet<MaintainerTeam> Maintainers { get; set; }
|
||||||
|
public DbSet<Service> Services { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user