Creating DbContext

This commit is contained in:
2023-11-21 12:25:31 +01:00
parent 0b200effb9
commit 01fc34ad64
2 changed files with 15 additions and 8 deletions

View File

@@ -1,8 +0,0 @@
using System;
namespace WD7UVN_HFT_2023241.Repository
{
public class Class1
{
}
}

View 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; }
}
}