Add the PageContent table (entity, DbContext, migration, model snapshot)

This commit is contained in:
Francesco Lorenzo D'Amico
2026-09-11 13:29:15 +02:00
parent ea14d9208e
commit 776d62a724
5 changed files with 195 additions and 4 deletions
@@ -1,10 +1,10 @@
// <auto-generated />
using System;
using BewerbungsSeite.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using BewerbungsSeite.Data;
#nullable disable
@@ -82,6 +82,23 @@ namespace BewerbungsSeite.Migrations
b.ToTable("ContactMessage");
});
modelBuilder.Entity("BewerbungsSeite.Models.PageContentEntity", b =>
{
b.Property<int>("Id")
.HasColumnType("int");
b.Property<byte[]>("Content")
.IsRequired()
.HasColumnType("varbinary(max)");
b.Property<DateTime>("UpdatedAt")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("PageContent");
});
#pragma warning restore 612, 618
}
}