| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- namespace ShwasherSys.Migrations
- {
- using System;
- using System.Collections.Generic;
- using System.Data.Entity.Infrastructure.Annotations;
- using System.Data.Entity.Migrations;
-
- public partial class addwxusertable : DbMigration
- {
- public override void Up()
- {
- //CreateTable(
- // "dbo.WxUsers",
- // c => new
- // {
- // Id = c.Int(nullable: false, identity: true),
- // UserId = c.Long(nullable: false),
- // UserName = c.String(),
- // OpenId = c.String(),
- // RealName = c.String(),
- // AvatarUrl = c.String(),
- // Gender = c.String(),
- // Country = c.String(),
- // Province = c.String(),
- // City = c.String(),
- // Language = c.String(),
- // NickName = c.String(),
- // UnionId = c.String(),
- // Remark = c.String(),
- // IsDeleted = c.Boolean(nullable: false),
- // DeleterUserId = c.Long(),
- // DeletionTime = c.DateTime(),
- // LastModificationTime = c.DateTime(),
- // LastModifierUserId = c.Long(),
- // CreationTime = c.DateTime(nullable: false),
- // CreatorUserId = c.Long(),
- // },
- // annotations: new Dictionary<string, object>
- // {
- // { "DynamicFilter_WxUser_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
- // })
- // .PrimaryKey(t => t.Id);
-
- }
-
- public override void Down()
- {
- //DropTable("dbo.WxUsers",
- // removedAnnotations: new Dictionary<string, object>
- // {
- // { "DynamicFilter_WxUser_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
- // });
- }
- }
- }
|