懒得勤快 6 yıl önce
ebeveyn
işleme
a8cd1bf5ab

+ 2 - 23
src/Masuit.MyBlogs.Core/Migrations/20190201132829_Init.Designer.cs → src/Masuit.MyBlogs.Core/Migrations/20190224061047_Init.Designer.cs

@@ -10,14 +10,14 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 namespace Masuit.MyBlogs.Core.Migrations
 {
     [DbContext(typeof(DataContext))]
-    [Migration("20190201132829_Init")]
+    [Migration("20190224061047_Init")]
     partial class Init
     {
         protected override void BuildTargetModel(ModelBuilder modelBuilder)
         {
 #pragma warning disable 612, 618
             modelBuilder
-                .HasAnnotation("ProductVersion", "2.2.1-servicing-10028")
+                .HasAnnotation("ProductVersion", "2.2.2-servicing-10034")
                 .HasAnnotation("Relational:MaxIdentifierLength", 128)
                 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
 
@@ -107,27 +107,6 @@ namespace Masuit.MyBlogs.Core.Migrations
                     b.ToTable("Comment");
                 });
 
-            modelBuilder.Entity("Masuit.MyBlogs.Core.Models.Entity.Contacts", b =>
-                {
-                    b.Property<int>("Id")
-                        .ValueGeneratedOnAdd()
-                        .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
-                    b.Property<int>("Status");
-
-                    b.Property<string>("Title")
-                        .IsRequired()
-                        .IsUnicode(true);
-
-                    b.Property<string>("Url")
-                        .IsRequired()
-                        .IsUnicode(true);
-
-                    b.HasKey("Id");
-
-                    b.ToTable("Contacts");
-                });
-
             modelBuilder.Entity("Masuit.MyBlogs.Core.Models.Entity.Donate", b =>
                 {
                     b.Property<int>("Id")

+ 0 - 13
src/Masuit.MyBlogs.Core/Migrations/20190201132829_Init.cs → src/Masuit.MyBlogs.Core/Migrations/20190224061047_Init.cs

@@ -32,17 +32,6 @@ namespace Masuit.MyBlogs.Core.Migrations
                 table.PrimaryKey("PK_Category", x => x.Id);
             });
 
-            migrationBuilder.CreateTable(name: "Contacts", columns: table => new
-            {
-                Id = table.Column<int>(nullable: false).Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
-                Status = table.Column<int>(nullable: false),
-                Title = table.Column<string>(nullable: false),
-                Url = table.Column<string>(nullable: false)
-            }, constraints: table =>
-            {
-                table.PrimaryKey("PK_Contacts", x => x.Id);
-            });
-
             migrationBuilder.CreateTable(name: "Donate", columns: table => new
             {
                 Id = table.Column<int>(nullable: false).Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
@@ -389,8 +378,6 @@ namespace Masuit.MyBlogs.Core.Migrations
 
             migrationBuilder.DropTable(name: "Comment");
 
-            migrationBuilder.DropTable(name: "Contacts");
-
             migrationBuilder.DropTable(name: "Donate");
 
             migrationBuilder.DropTable(name: "FastShare");

+ 1 - 16
src/Masuit.MyBlogs.Core/Migrations/DataContextModelSnapshot.cs

@@ -14,7 +14,7 @@ namespace Masuit.MyBlogs.Core.Migrations
         protected override void BuildModel(ModelBuilder modelBuilder)
         {
 #pragma warning disable 612, 618
-            modelBuilder.HasAnnotation("ProductVersion", "2.2.1-servicing-10028").HasAnnotation("Relational:MaxIdentifierLength", 128).HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
+            modelBuilder.HasAnnotation("ProductVersion", "2.2.2-servicing-10034").HasAnnotation("Relational:MaxIdentifierLength", 128).HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
 
             modelBuilder.Entity("Masuit.MyBlogs.Core.Models.Entity.Broadcast", b =>
             {
@@ -89,21 +89,6 @@ namespace Masuit.MyBlogs.Core.Migrations
                 b.ToTable("Comment");
             });
 
-            modelBuilder.Entity("Masuit.MyBlogs.Core.Models.Entity.Contacts", b =>
-            {
-                b.Property<int>("Id").ValueGeneratedOnAdd().HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
-
-                b.Property<int>("Status");
-
-                b.Property<string>("Title").IsRequired().IsUnicode(true);
-
-                b.Property<string>("Url").IsRequired().IsUnicode(true);
-
-                b.HasKey("Id");
-
-                b.ToTable("Contacts");
-            });
-
             modelBuilder.Entity("Masuit.MyBlogs.Core.Models.Entity.Donate", b =>
             {
                 b.Property<int>("Id").ValueGeneratedOnAdd().HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);