mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал привязку местоположений и принтеров к местоположениям
This commit is contained in:
1 parent
d69a5689e8
commit
13b3513d2d
49 files changed
+705
-1323
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user