Why does Entity Framework return an empty collection instead of a null for a property?
I have an Entity Framework model that has the following property:
EF Core 8 , tph inheritance, one to many relationship and automatic foreign key
I’m developing a web site application where clients may upload files. Some of the files may be attachments for some documents, and some are not. I’m using SQL Server as the database.
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: