Relative Content

Tag Archive for entity-framework-core

EF is not creating a MigrationsHistory table

I’ve been using Entity Frameworks for some time with my app. And I just noticed, there is no MigrationsHistory table. I looked at the files in core/Migrations and none of them create a MigrationsHistory table.

EF Core Entity Configuration WithMany and Where

Is there a way in the IEntityTypeConfiguration to add a where clause to the collection. As a simple (incomplete) example, I would like the Form.Items to only include the FormItems which have the FormId equal to the Form and ParentFormItemId equal to null.