From 00c3b32e2db200a2f42396ac7f8381704ec97268 Mon Sep 17 00:00:00 2001 From: Paweł Bernaciak Date: Fri, 10 Feb 2023 16:19:46 +0100 Subject: Initial Commit --- .../ApplicationDbContextModelSnapshot.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs (limited to 'CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs') diff --git a/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs b/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs new file mode 100644 index 0000000..fb063f5 --- /dev/null +++ b/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs @@ -0,0 +1,39 @@ +// +using System; +using CoreWiki.Models; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace CoreWiki.Migrations +{ + [DbContext(typeof(ApplicationDbContext))] + partial class ApplicationDbContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder.HasAnnotation("ProductVersion", "7.0.2"); + + modelBuilder.Entity("CoreWiki.Models.Article", b => + { + b.Property("Topic") + .HasColumnType("TEXT"); + + b.Property("Content") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property("Published") + .HasColumnType("TEXT"); + + b.HasKey("Topic"); + + b.ToTable("Articles"); + }); +#pragma warning restore 612, 618 + } + } +} -- cgit v1.2.3