You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
434 B

using Microsoft.EntityFrameworkCore;
using WebAPIWithEF.Models;
namespace WebAPIWithEF.Data
{
public class PizzaContext : DbContext
{
public DbSet<Pizza> Pizzas => Set<Pizza>();
public DbSet<Topping> Toppings => Set<Topping>();
public DbSet<Sauce> Sauces => Set<Sauce>();
public PizzaContext(DbContextOptions<PizzaContext> options) : base(options)
{
}
}
}