// 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("20170921032209_AddCreatDate")] partial class AddCreatDate { 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("Id") .ValueGeneratedOnAdd(); b.Property("AssetType"); b.Property("BundleId"); b.Property("CreateDate") .ValueGeneratedOnAdd() .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); b.Property("Data"); b.Property("Describe"); b.HasKey("Id"); b.HasIndex("BundleId"); b.ToTable("Asset"); }); modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.Bundle", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CreateDate") .ValueGeneratedOnAdd() .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); b.Property("Describe"); b.Property("UserId"); b.HasKey("Id"); b.ToTable("Bundle"); }); modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CreateDate") .ValueGeneratedOnAdd() .HasAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn); b.Property("Mobile"); b.Property("OpenId"); 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 } } }