20170927073229_UpdateBundle1.Designer.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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("20170927073229_UpdateBundle1")]
  15. partial class UpdateBundle1
  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>("SearchCode");
  49. b.Property<string>("Title");
  50. b.Property<int>("Type");
  51. b.Property<string>("Unit_id");
  52. b.Property<int>("UserId");
  53. b.HasKey("Id");
  54. b.ToTable("Bundle");
  55. });
  56. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b =>
  57. {
  58. b.Property<int>("Id")
  59. .ValueGeneratedOnAdd();
  60. b.Property<DateTime>("CreateDate");
  61. b.Property<string>("Mobile");
  62. b.Property<string>("OpenId");
  63. b.HasKey("Id");
  64. b.ToTable("WXUser");
  65. });
  66. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
  67. {
  68. b.HasOne("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle")
  69. .WithMany("Assets")
  70. .HasForeignKey("BundleId")
  71. .OnDelete(DeleteBehavior.Cascade);
  72. });
  73. #pragma warning restore 612, 618
  74. }
  75. }
  76. }