20170921032209_AddCreatDate.Designer.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // <auto-generated />
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Infrastructure;
  4. using Microsoft.EntityFrameworkCore.Metadata;
  5. using Microsoft.EntityFrameworkCore.Migrations;
  6. using Microsoft.EntityFrameworkCore.Storage;
  7. using Microsoft.EntityFrameworkCore.Storage.Internal;
  8. using System;
  9. using Winsoft.GOV.XF.WebApi.WXCore.Data;
  10. using Winsoft.GOV.XF.WebApi.WXCore.Models;
  11. namespace Winsoft.GOV.XF.WebApi.WXCore.Migrations
  12. {
  13. [DbContext(typeof(XFDbContext))]
  14. [Migration("20170921032209_AddCreatDate")]
  15. partial class AddCreatDate
  16. {
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn)
  22. .HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
  23. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
  24. {
  25. b.Property<Guid>("Id")
  26. .ValueGeneratedOnAdd();
  27. b.Property<int>("AssetType");
  28. b.Property<Guid>("BundleId");
  29. b.Property<DateTime>("CreateDate")
  30. .ValueGeneratedOnAdd()
  31. .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
  32. b.Property<string>("Data");
  33. b.Property<string>("Describe");
  34. b.HasKey("Id");
  35. b.HasIndex("BundleId");
  36. b.ToTable("Asset");
  37. });
  38. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle", b =>
  39. {
  40. b.Property<Guid>("Id")
  41. .ValueGeneratedOnAdd();
  42. b.Property<DateTime>("CreateDate")
  43. .ValueGeneratedOnAdd()
  44. .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
  45. b.Property<string>("Describe");
  46. b.Property<int>("UserId");
  47. b.HasKey("Id");
  48. b.ToTable("Bundle");
  49. });
  50. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b =>
  51. {
  52. b.Property<int>("Id")
  53. .ValueGeneratedOnAdd();
  54. b.Property<DateTime>("CreateDate")
  55. .ValueGeneratedOnAdd()
  56. .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
  57. b.Property<string>("Mobile");
  58. b.Property<string>("OpenId");
  59. b.HasKey("Id");
  60. b.ToTable("WXUser");
  61. });
  62. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
  63. {
  64. b.HasOne("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle")
  65. .WithMany("Assets")
  66. .HasForeignKey("BundleId")
  67. .OnDelete(DeleteBehavior.Cascade);
  68. });
  69. #pragma warning restore 612, 618
  70. }
  71. }
  72. }