EF Core Add-Migration only includes key columns [Answered]
Hi,
I'm using EF Core for the first time. When I run Add-Migrations command, the migration classes are generated, but in every table only primary keys column(s) are included.
I have a couple of classes, e.g.
And I have the following ApplicationDbContext
And in Program.cs I have
If I run Update-Database, the database is successfully updated, but only colums representing a primary key are included in the table.
Add-Migration produces no error, the only line a bit strange is
4 Replies
They have to be properties
ohh
thanks 😓
Ok I confirm now all properties are included 👍
Awesome
✅ This post has been marked as answered!