Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void OnModelCreating(ModelBuilder builder)
- {
- builder.Entity<Coffee>()
- .HasData(
- new Coffee
- {
- Id = 1,
- Title = "Cappuccino",
- Description = "Viennese, wings arabica, strong, sweet turkish, french press flavour siphon flavour strong. Dripper extraction, froth acerbic as shop bar black.",
- Price = 1.99,
- Image = "./images/cappuccino.jpg"
- },
- new Coffee
- {
- Id = 2,
- Title = "Espresso",
- Description = "Mocha, cinnamon medium single shot, trifecta breve black extraction strong white.Frappuccino trifecta, lungo to go crema con panna viennese organic variety.",
- Price = 2.49,
- Image = "./images/espresso.jpg"
- },
- new Coffee
- {
- Id = 3,
- Title = "Latte",
- Description = "Robust, americano acerbic strong viennese mocha foam. Sugar cup, ristretto irish blue mountain cappuccino id caffeine aromatic.",
- Price = 2.99,
- Image = "./images/latte.jpg"
- },
- new Coffee
- {
- Id = 4,
- Title = "Macchiato",
- Description = "An espresso made with a small amount of foamed milk, similar to a cappuccino only stronger.",
- Price = 2.59,
- Image = "./images/macchiato.jpg"
- },
- new Coffee
- {
- Id = 5,
- Title = "Irish Coffee",
- Description = "Coffee combined with whiskey and cream and sometimes sweetened with sugar.",
- Price = 3.59,
- Image = "./images/irish.jpg"
- },
- new Coffee
- {
- Id = 6,
- Title = "Cortado",
- Description = "An espresso cut with a small amount of warm milk to reduce the acidity.",
- Price = 2.99,
- Image = "./images/cortado.jpg"
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement