| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- // <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("20170919035006_Initial")]
- partial class Initial
- {
- 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<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>("Describe");
- b.HasKey("Id");
- b.ToTable("Bundle");
- });
- modelBuilder.Entity("Winsoft.GOV.XF.WebApi.WXCore.Models.WXUser", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd();
- b.Property<string>("Mobile");
- b.Property<string>("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
- }
- }
- }
|