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 code first column length change gets reverted
My app runs on .Net 7 with EFCore 7.0.5. I have two tables
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.
how to query JSON columns when field does not defined in EF Core
i have JSON Column called JsonData , in this field i have a field for example X
many records does not have X field in JsonData because this field was added later.
how can get all records in EF Core that do not have X field in JsonData ?
The instance of entity type ‘GoodsDelivery’ cannot be tracked because another instance with the same key value for {‘Id’} is already being tracked
var existingRecord = await this.GetGoodsDelivery(goodsDelivery.Id);
Can’t delete from many-to-many relationship
I have what appears to be a textbook example of an indirect many-to-many relationship.
Is it possible to filter granchild navigation on parent navigation in EF Core
I want to filter a grand child based on parent. I’m not sure how to reference back to the parent when using a ThenInclude.
Is it possible to filter granchild navigation on parent navigation in EF Core
I want to filter a grand child based on parent. I’m not sure how to reference back to the parent when using a ThenInclude.
EF Load Related Entities Over a List Collection of Entities
EF Core’s documentation gives a simple example about how to load a related collection to a single entity.