24 lines
564 B
C#
24 lines
564 B
C#
// No, qui non troverai IIDX Sparkle Shower
|
|
// wait for chinese leakers
|
|
using PizzaExpress.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace PizzaExpress.Data
|
|
{
|
|
public class PizzaContext : DbContext
|
|
{
|
|
public PizzaContext(DbContextOptions<PizzaContext> options)
|
|
: base(options) { }
|
|
|
|
public DbSet<Pizza> Pizze => Set<Pizza>();
|
|
}
|
|
|
|
public static class SeedData
|
|
{
|
|
public static void Initialize(PizzaContext ctx)
|
|
{
|
|
if (ctx.Pizze.Any()) return;
|
|
}
|
|
}
|
|
}
|