How to make .OwnsOne() objects not null by default?
So I’ve inherited an app that I’ve recently upgraded from .NET Core 2 to .NET 8. It uses entityframework and a lot of .OwnsOne().
EF Core Include() not doing LEFT JOIN
The problem i an encountering is this: I need to get multiple navigation properties for the data to display on my frontend. I’m using .Include()
to get those.
Stop EF from creating shadow properties [closed]
Closed yesterday.
Is it unwise to extend (as in: put in non-column properties) the Entity classes of EF Core?
Let’s say I have two classes representing two tables in the DB
DatabaseGenerated(DatabaseGeneratedOption.Identity) doesn’t generate a value on insert for DateTime colums using SQL Server EF Core provider
When inserting new rows the NotifiedAt
column with the [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
attribute doesn’t get auto-populated.
DatabaseGenerated(DatabaseGeneratedOption.Identity) doesn’t generate a value on insert for DateTime colums using SQL Server EF Core provider
When inserting new rows the NotifiedAt
column with the [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
attribute doesn’t get auto-populated.
DatabaseGenerated(DatabaseGeneratedOption.Identity) doesn’t generate a value on insert for DateTime colums using SQL Server EF Core provider
When inserting new rows the NotifiedAt
column with the [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
attribute doesn’t get auto-populated.
Why do I get this error for configuring my model in EF Core?
I’m trying to configure my EF Core. I want to DRY and reuse code. Therefore I created a simple method to filter out all of the properties of all entity types in my model:
Is it possible to add only the new entities and ignore the existing ones?
I am using Entity Framework Core 8 and I have a list of entities that I want to add to the database.
Is it possible to add only the no exisiting entities and igonre the existing one?
I am using Entity Core 8 and I have a list of entities that I want to add to the database.