forked from E-menu/E_Menu_Personel_App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppDbContext.cs
32 lines (28 loc) · 892 Bytes
/
AppDbContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
namespace E_Menu_Personel_App
{
using Microsoft.EntityFrameworkCore;
using Models;
/// <summary>
/// Provides database service
/// </summary>
public class AppDbContext : DbContext
{
/// <summary>
/// Create table of tables
/// </summary>
public DbSet<Table> Tables { set; get; }
/// <summary>
/// Create table of dishes
/// </summary>
public DbSet<Dish> Dishes { set; get; }
/// <summary>
/// Create table of orders
/// </summary>
public DbSet<Order> Orders { set; get; }
/// <summary>
/// Constructor of database
/// </summary>
/// <param name="options"> Database options, requires DbContextOptions of AppDbContext object </param>
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
}
}