20171207082914_AddOpenIDToBundle.Designer.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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("20171207082914_AddOpenIDToBundle")]
  15. partial class AddOpenIDToBundle
  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. b.Property<string>("Data");
  31. b.Property<string>("Describe");
  32. b.HasKey("Id");
  33. b.HasIndex("BundleId");
  34. b.ToTable("Asset");
  35. });
  36. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle", b =>
  37. {
  38. b.Property<Guid>("Id")
  39. .ValueGeneratedOnAdd();
  40. b.Property<string>("Advice");
  41. b.Property<string>("County_id");
  42. b.Property<DateTime>("CreateDate");
  43. b.Property<string>("Describe");
  44. b.Property<int>("IsPublic");
  45. b.Property<string>("Key");
  46. b.Property<string>("Mobile");
  47. b.Property<string>("Name");
  48. b.Property<string>("OpenID");
  49. b.Property<string>("SearchCode");
  50. b.Property<string>("Title");
  51. b.Property<int>("Type");
  52. b.Property<string>("Unit_id");
  53. b.Property<int>("UserId");
  54. b.HasKey("Id");
  55. b.ToTable("Bundle");
  56. });
  57. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b =>
  58. {
  59. b.Property<int>("Id")
  60. .ValueGeneratedOnAdd();
  61. b.Property<string>("City");
  62. b.Property<string>("Country");
  63. b.Property<DateTime>("CreateDate");
  64. b.Property<string>("HeadimgUrl");
  65. b.Property<string>("Mobile");
  66. b.Property<string>("Nickname");
  67. b.Property<string>("OpenId");
  68. b.Property<string>("Province");
  69. b.Property<int>("Sex");
  70. b.Property<string>("UnionId");
  71. b.HasKey("Id");
  72. b.ToTable("WXUser");
  73. });
  74. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
  75. {
  76. b.HasOne("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle")
  77. .WithMany("Assets")
  78. .HasForeignKey("BundleId")
  79. .OnDelete(DeleteBehavior.Cascade);
  80. });
  81. #pragma warning restore 612, 618
  82. }
  83. }
  84. }