Advertisement
RokasC

Untitled

Sep 20th, 2019
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. protected override void OnModelCreating(ModelBuilder builder)
  2. {
  3. builder.Entity<Coffee>()
  4. .HasData(
  5. new Coffee
  6. {
  7. Id = 1,
  8. Title = "Cappuccino",
  9. Description = "Viennese, wings arabica, strong, sweet turkish, french press flavour siphon flavour strong. Dripper extraction, froth acerbic as shop bar black.",
  10. Price = 1.99,
  11. Image = "./images/cappuccino.jpg"
  12. },
  13. new Coffee
  14. {
  15. Id = 2,
  16. Title = "Espresso",
  17. Description = "Mocha, cinnamon medium single shot, trifecta breve black extraction strong white.Frappuccino trifecta, lungo to go crema con panna viennese organic variety.",
  18. Price = 2.49,
  19. Image = "./images/espresso.jpg"
  20. },
  21. new Coffee
  22. {
  23. Id = 3,
  24. Title = "Latte",
  25. Description = "Robust, americano acerbic strong viennese mocha foam. Sugar cup, ristretto irish blue mountain cappuccino id caffeine aromatic.",
  26. Price = 2.99,
  27. Image = "./images/latte.jpg"
  28. },
  29. new Coffee
  30. {
  31. Id = 4,
  32. Title = "Macchiato",
  33. Description = "An espresso made with a small amount of foamed milk, similar to a cappuccino only stronger.",
  34. Price = 2.59,
  35. Image = "./images/macchiato.jpg"
  36. },
  37. new Coffee
  38. {
  39. Id = 5,
  40. Title = "Irish Coffee",
  41. Description = "Coffee combined with whiskey and cream and sometimes sweetened with sugar.",
  42. Price = 3.59,
  43. Image = "./images/irish.jpg"
  44. },
  45. new Coffee
  46. {
  47. Id = 6,
  48. Title = "Cortado",
  49. Description = "An espresso cut with a small amount of warm milk to reduce the acidity.",
  50. Price = 2.99,
  51. Image = "./images/cortado.jpg"
  52. }
  53. );
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement