26 lines
504 B
C#
26 lines
504 B
C#
using AB.Domain.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AB.Persistence;
|
|
|
|
public sealed class RepoDbContext : DbContext
|
|
{
|
|
|
|
public RepoDbContext(DbContextOptions options)
|
|
: base (options)
|
|
{
|
|
}
|
|
|
|
public DbSet<Customer> Customers { get; set; }
|
|
|
|
public DbSet<Supplier> Suppliers { get; set; }
|
|
|
|
public DbSet<Product> Products { get; set; }
|
|
|
|
}
|