python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
EF Core on .net5 - AddDbContext not working
This has been driving me up the wall as there should be no reason why AddDbContext in startup.cs isn't working. Anyone have any thoughts?
Project specs: .net 5, EF Core 5, MVC
PsContext.cs
public PsCo...

Mike Ooi
Votes: 0
Answers: 0
What is the equivalent of entityEntry.Metadata.DefiningNavigationName() in EF Core 6?
I am using EF Core 5 and I have the following in my DBContext SaveChanges():
if (entityEntry.Metadata.Name == "ArticleBankAggregate.ArticleTag" && entityEntry.Metadata.De...
Mike Lenart
Votes: 0
Answers: 1
Wrap raw queries in a transaction
I must do these 3 operations in sequence over a database:
Truncate final table
Migrate data from start table to final table
Truncate start table
I want to wrap these operations in a single transacti...
Loris
Votes: 0
Answers: 0
EF Core Foreign Key: incompatible types
I looked through many similar questions, but I find no applicable solution.
I get the following error message during tests:
System.InvalidOperationException : The relationship from 'Product.FeatureTy...

Balázs Börcsök
Votes: 0
Answers: 3