Logging sorted

This commit is contained in:
2022-06-10 23:18:02 +01:00
parent e7c1fde35e
commit d15571a98d
9 changed files with 139 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Diary.Data.Migrations
{
[DbContext(typeof(DiaryDBContext))]
[Migration("20220603063002_Initial")]
[Migration("20220603115417_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -33,7 +33,7 @@ namespace Diary.Data.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("EnrtyID"), 1L, 1);
b.Property<DateTime>("Date")
.HasColumnType("Date");
.HasColumnType("date");
b.Property<string>("Note")
.IsRequired()

View File

@@ -19,7 +19,7 @@ namespace Diary.Data.Migrations
{
EnrtyID = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Date = table.Column<DateTime>(type: "Date", nullable: false),
Date = table.Column<DateTime>(type: "date", nullable: false),
ValidFrom = table.Column<DateTime>(type: "datetime2", nullable: false),
ValidTo = table.Column<DateTime>(type: "datetime2", nullable: true),
Note = table.Column<string>(type: "nvarchar(max)", nullable: false)

View File

@@ -31,7 +31,7 @@ namespace Diary.Data.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("EnrtyID"), 1L, 1);
b.Property<DateTime>("Date")
.HasColumnType("Date");
.HasColumnType("date");
b.Property<string>("Note")
.IsRequired()