DataContextModelSnapshot.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // <auto-generated />
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Infrastructure;
  4. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  5. using Products.Business.Persistence;
  6. #nullable disable
  7. namespace Products.Business.Migrations
  8. {
  9. [DbContext(typeof(DataContext))]
  10. partial class DataContextModelSnapshot : ModelSnapshot
  11. {
  12. protected override void BuildModel(ModelBuilder modelBuilder)
  13. {
  14. #pragma warning disable 612, 618
  15. modelBuilder.HasAnnotation("ProductVersion", "7.0.11");
  16. modelBuilder.Entity("Products.Business.Domain.Product", b =>
  17. {
  18. b.Property<int>("Id")
  19. .ValueGeneratedOnAdd()
  20. .HasColumnType("INTEGER");
  21. b.Property<string>("Brand")
  22. .IsRequired()
  23. .HasColumnType("TEXT");
  24. b.Property<int>("Color")
  25. .HasColumnType("INTEGER");
  26. b.Property<string>("Name")
  27. .IsRequired()
  28. .HasColumnType("TEXT");
  29. b.HasKey("Id");
  30. b.ToTable("Products");
  31. b.HasData(
  32. new
  33. {
  34. Id = 1,
  35. Brand = "Brand Azul",
  36. Color = 2,
  37. Name = "Product Azul"
  38. },
  39. new
  40. {
  41. Id = 2,
  42. Brand = "Brand Rojo",
  43. Color = 0,
  44. Name = "Product Rojo"
  45. },
  46. new
  47. {
  48. Id = 3,
  49. Brand = "Brand Verde",
  50. Color = 1,
  51. Name = "Product Verde"
  52. },
  53. new
  54. {
  55. Id = 4,
  56. Brand = "Brand Azul #2",
  57. Color = 2,
  58. Name = "Product Azul #2"
  59. },
  60. new
  61. {
  62. Id = 5,
  63. Brand = "Brand Rojo #2",
  64. Color = 0,
  65. Name = "Product Rojo #2"
  66. });
  67. });
  68. modelBuilder.Entity("Products.Business.Domain.User", b =>
  69. {
  70. b.Property<int>("Id")
  71. .ValueGeneratedOnAdd()
  72. .HasColumnType("INTEGER");
  73. b.Property<string>("Brand")
  74. .IsRequired()
  75. .HasColumnType("TEXT");
  76. b.Property<int>("Color")
  77. .HasColumnType("INTEGER");
  78. b.Property<string>("Name")
  79. .IsRequired()
  80. .HasColumnType("TEXT");
  81. b.HasKey("Id");
  82. b.ToTable("Users");
  83. });
  84. #pragma warning restore 612, 618
  85. }
  86. }
  87. }