From d46dab2d3364f403dfe2738b1e06b5874122e206 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Tue, 11 Jul 2017 10:06:26 +0800 Subject: [PATCH] update samples. --- ...e.Designer.cs => 20170710102614_InitilizeDB.Designer.cs} | 6 ++++-- ...29074148_InitCreate.cs => 20170710102614_InitilizeDB.cs} | 3 ++- .../Sample.Kafka/Migrations/AppDbContextModelSnapshot.cs | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) rename samples/Sample.Kafka/Migrations/{20170629074148_InitCreate.Designer.cs => 20170710102614_InitilizeDB.Designer.cs} (93%) rename samples/Sample.Kafka/Migrations/{20170629074148_InitCreate.cs => 20170710102614_InitilizeDB.cs} (94%) diff --git a/samples/Sample.Kafka/Migrations/20170629074148_InitCreate.Designer.cs b/samples/Sample.Kafka/Migrations/20170710102614_InitilizeDB.Designer.cs similarity index 93% rename from samples/Sample.Kafka/Migrations/20170629074148_InitCreate.Designer.cs rename to samples/Sample.Kafka/Migrations/20170710102614_InitilizeDB.Designer.cs index ff7d387..5ed1422 100644 --- a/samples/Sample.Kafka/Migrations/20170629074148_InitCreate.Designer.cs +++ b/samples/Sample.Kafka/Migrations/20170710102614_InitilizeDB.Designer.cs @@ -8,8 +8,8 @@ using Sample.Kafka; namespace Sample.Kafka.Migrations { [DbContext(typeof(AppDbContext))] - [Migration("20170629074148_InitCreate")] - partial class InitCreate + [Migration("20170710102614_InitilizeDB")] + partial class InitilizeDB { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -26,6 +26,8 @@ namespace Sample.Kafka.Migrations b.Property("Content"); + b.Property("Group"); + b.Property("KeyName"); b.Property("LastRun"); diff --git a/samples/Sample.Kafka/Migrations/20170629074148_InitCreate.cs b/samples/Sample.Kafka/Migrations/20170710102614_InitilizeDB.cs similarity index 94% rename from samples/Sample.Kafka/Migrations/20170629074148_InitCreate.cs rename to samples/Sample.Kafka/Migrations/20170710102614_InitilizeDB.cs index 9168f8c..58c85e8 100644 --- a/samples/Sample.Kafka/Migrations/20170629074148_InitCreate.cs +++ b/samples/Sample.Kafka/Migrations/20170710102614_InitilizeDB.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore.Migrations; namespace Sample.Kafka.Migrations { - public partial class InitCreate : Migration + public partial class InitilizeDB : Migration { protected override void Up(MigrationBuilder migrationBuilder) { @@ -15,6 +15,7 @@ namespace Sample.Kafka.Migrations Id = table.Column(nullable: false), Added = table.Column(nullable: false), Content = table.Column(nullable: true), + Group = table.Column(nullable: true), KeyName = table.Column(nullable: true), LastRun = table.Column(nullable: false), Retries = table.Column(nullable: false), diff --git a/samples/Sample.Kafka/Migrations/AppDbContextModelSnapshot.cs b/samples/Sample.Kafka/Migrations/AppDbContextModelSnapshot.cs index cd7fc0b..bd06932 100644 --- a/samples/Sample.Kafka/Migrations/AppDbContextModelSnapshot.cs +++ b/samples/Sample.Kafka/Migrations/AppDbContextModelSnapshot.cs @@ -25,6 +25,8 @@ namespace Sample.Kafka.Migrations b.Property("Content"); + b.Property("Group"); + b.Property("KeyName"); b.Property("LastRun");