diff options
Diffstat (limited to 'CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs')
| -rw-r--r-- | CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs b/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs index fb063f5..4808c70 100644 --- a/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/CoreWiki/Migrations/ApplicationDbContextModelSnapshot.cs @@ -19,19 +19,34 @@ namespace CoreWiki.Migrations modelBuilder.Entity("CoreWiki.Models.Article", b => { - b.Property<string>("Topic") + b.Property<string>("Slug") .HasColumnType("TEXT"); b.Property<string>("Content") .IsRequired() .HasColumnType("TEXT"); - b.Property<DateTime>("Published") + b.Property<DateTime>("PublishedDateTime") + .HasColumnType("TEXT") + .HasColumnName("Published"); + + b.Property<string>("Topic") + .IsRequired() + .HasMaxLength(100) .HasColumnType("TEXT"); - b.HasKey("Topic"); + b.HasKey("Slug"); b.ToTable("Articles"); + + b.HasData( + new + { + Slug = "home-page", + Content = "Welcome to your new CoreWiki installation", + PublishedDateTime = new DateTime(2023, 12, 22, 13, 41, 24, 978, DateTimeKind.Utc).AddTicks(110), + Topic = "Home Page" + }); }); #pragma warning restore 612, 618 } |
