summaryrefslogtreecommitdiff
path: root/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs')
-rw-r--r--CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs39
1 files changed, 39 insertions, 0 deletions
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 @@
+// <auto-generated />
+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<string>("Topic")
+ .HasColumnType("TEXT");
+
+ b.Property<string>("Content")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property<DateTime>("Published")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Topic");
+
+ b.ToTable("Articles");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}