| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- // <auto-generated />
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Microsoft.EntityFrameworkCore.Storage;
- using Microsoft.EntityFrameworkCore.Storage.Internal;
- using System;
- using Winsoft.GOV.XF.WebApi.WXCore.Data;
- using Winsoft.GOV.XF.WebApi.WXCore.Models;
- namespace Winsoft.GOV.XF.WebApi.WXCore.Migrations
- {
- [DbContext(typeof(XFDbContext))]
- [Migration("20171207082914_AddOpenIDToBundle")]
- partial class AddOpenIDToBundle
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn)
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
- modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd();
- b.Property<int>("AssetType");
- b.Property<Guid>("BundleId");
- b.Property<DateTime>("CreateDate");
- b.Property<string>("Data");
- b.Property<string>("Describe");
- b.HasKey("Id");
- b.HasIndex("BundleId");
- b.ToTable("Asset");
- });
- modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd();
- b.Property<string>("Advice");
- b.Property<string>("County_id");
- b.Property<DateTime>("CreateDate");
- b.Property<string>("Describe");
- b.Property<int>("IsPublic");
- b.Property<string>("Key");
- b.Property<string>("Mobile");
- b.Property<string>("Name");
- b.Property<string>("OpenID");
- b.Property<string>("SearchCode");
- b.Property<string>("Title");
- b.Property<int>("Type");
- b.Property<string>("Unit_id");
- b.Property<int>("UserId");
- b.HasKey("Id");
- b.ToTable("Bundle");
- });
- modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd();
- b.Property<string>("City");
- b.Property<string>("Country");
- b.Property<DateTime>("CreateDate");
- b.Property<string>("HeadimgUrl");
- b.Property<string>("Mobile");
- b.Property<string>("Nickname");
- b.Property<string>("OpenId");
- b.Property<string>("Province");
- b.Property<int>("Sex");
- b.Property<string>("UnionId");
- b.HasKey("Id");
- b.ToTable("WXUser");
- });
- modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Asset", b =>
- {
- b.HasOne("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle")
- .WithMany("Assets")
- .HasForeignKey("BundleId")
- .OnDelete(DeleteBehavior.Cascade);
- });
- #pragma warning restore 612, 618
- }
- }
- }
|