Skip to content

Commit

Permalink
#27: initial migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Dec 11, 2016
1 parent 2c6ad1d commit 1366c3c
Show file tree
Hide file tree
Showing 16 changed files with 1,377 additions and 1,449 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Ctor.Database.Migrations/Migrations/20161211072528_Logs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Ctor.Database.Migrations.Migrations
{
public partial class Logs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{

}

protected override void Down(MigrationBuilder migrationBuilder)
{

}
}
}
37 changes: 37 additions & 0 deletions Ctor.Database.Migrations/Migrations/ContextModelSnapshot.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Ctor.Database;

namespace Ctor.Database.Migrations.Migrations
{
[DbContext(typeof(Context))]
partial class ContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752");

modelBuilder.Entity("Ctor.Database.Log", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd();

b.Property<string>("Conference");

b.Property<DateTime>("DateTime");

b.Property<string>("Sender");

b.Property<string>("Text");

b.HasKey("Id");

b.ToTable("Logs");
});
}
}
}
2 changes: 1 addition & 1 deletion Ctor.Database.Migrations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"debugType": "portable"
},
"dependencies": {
"Microsoft.EntityFrameworkCore.Sqlite": "1.0.0",
"Microsoft.EntityFrameworkCore.Relational": "1.1.0",

"Ctor.Database": "*"
},
Expand Down
Loading

0 comments on commit 1366c3c

Please sign in to comment.