mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
21 lines
490 B
C#
21 lines
490 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using CartriX.Shared.Models;
|
|
|
|
namespace CartriX.Api
|
|
{
|
|
public class AppDbContext : DbContext
|
|
{
|
|
public AppDbContext(DbContextOptions options) : base(options)
|
|
{
|
|
|
|
}
|
|
public DbSet<Printer> Printers { get; set; }
|
|
public DbSet<Location> Locations { get; set; }
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
|
|
|
|
}
|
|
} |