Add project files.
This commit is contained in:
81
DiaryApp/Migrations/ApplicationDbContextModelSnapshot.cs
Normal file
81
DiaryApp/Migrations/ApplicationDbContextModelSnapshot.cs
Normal file
@ -0,0 +1,81 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using DiaryApp.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DiaryApp.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationDbContext))]
|
||||
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "10.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("DiaryApp.Models.DiaryEntry", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Content")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("DateCreated")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DiaryEntries");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Content = "Went hiking with Joe!",
|
||||
DateCreated = new DateTime(2026, 1, 1, 10, 32, 0, 0, DateTimeKind.Unspecified),
|
||||
Title = "Went Hiking"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Content = "Went Shoping with Joe!",
|
||||
DateCreated = new DateTime(2026, 1, 10, 8, 32, 0, 0, DateTimeKind.Unspecified),
|
||||
Title = "Went Shoping"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Content = "Went Swimming with Joe!",
|
||||
DateCreated = new DateTime(2026, 1, 15, 15, 42, 0, 0, DateTimeKind.Unspecified),
|
||||
Title = "Went Swimming"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
Content = "Went Biking with Joe!",
|
||||
DateCreated = new DateTime(2026, 1, 17, 12, 0, 0, 0, DateTimeKind.Unspecified),
|
||||
Title = "Went Biking"
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user