working customer post, get and delete
This commit is contained in:
25
AB.Persistence/RepoDbContext.cs
Normal file
25
AB.Persistence/RepoDbContext.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user