20170919035006_Initial.Designer.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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("20170919035006_Initial")]
  15. partial class Initial
  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<string>("Data");
  30. b.Property<string>("Describe");
  31. b.HasKey("Id");
  32. b.HasIndex("BundleId");
  33. b.ToTable("Asset");
  34. });
  35. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle", b =>
  36. {
  37. b.Property<Guid>("Id")
  38. .ValueGeneratedOnAdd();
  39. b.Property<string>("Describe");
  40. b.HasKey("Id");
  41. b.ToTable("Bundle");
  42. });
  43. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b =>
  44. {
  45. b.Property<int>("Id")
  46. .ValueGeneratedOnAdd();
  47. b.Property<string>("Mobile");
  48. b.Property<string>("OpenId");
  49. b.HasKey("Id");
  50. b.ToTable("WXUser");
  51. });
  52. modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
  53. {
  54. b.HasOne("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle")
  55. .WithMany("Assets")
  56. .HasForeignKey("BundleId")
  57. .OnDelete(DeleteBehavior.Cascade);
  58. });
  59. #pragma warning restore 612, 618
  60. }
  61. }
  62. }