54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Diary.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace Diary.Data.Migrations
|
|
{
|
|
[DbContext(typeof(DiaryDBContext))]
|
|
partial class DiaryDBContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "6.0.5")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
modelBuilder.Entity("Diary.Component.Entry.Repository.Entry", b =>
|
|
{
|
|
b.Property<int>("EnrtyID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("EnrtyID"), 1L, 1);
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("date");
|
|
|
|
b.Property<string>("Note")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("ValidFrom")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("ValidTo")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("EnrtyID");
|
|
|
|
b.ToTable("Entries", "Diary");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|