mirror of
https://github.com/Biarity/Sieve.git
synced 2024-12-18 09:37:53 +01:00
48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
// <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 SieveTests.Entities;
|
|
using System;
|
|
|
|
namespace SieveTests.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20180522013323_AddDateLastViewedColumn")]
|
|
partial class AddDateLastViewedColumn
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "2.0.1-rtm-125")
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
modelBuilder.Entity("SieveTests.Entities.Post", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<int>("CommentCount");
|
|
|
|
b.Property<DateTimeOffset>("DateCreated");
|
|
|
|
b.Property<DateTime>("DateLastViewed")
|
|
.HasColumnType("datetime");
|
|
|
|
b.Property<int>("LikeCount");
|
|
|
|
b.Property<string>("Title");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Posts");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|