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)
Is there a way to factory inject a custom DbContext?
...Maybe using TFactory in AddDbContextFactory<TContext, TFactory> in EF Core extensions?
I've only seen AddDbContextFactory examples being used with just the TContext generic. They're always ve...

Gabriel Kunkel
Votes: 0
Answers: 2
Use different connection string based on country parameter and do you need to use "using" in EF Core?
Having a few Databases for example:
DB_EN
DB_FR
DB_DE
.
So I created something to get the correct Database by countryCode :
using (var context = new ApplicationContext(_DbContextConfigurationServ...
user11208424
Votes: 0
Answers: 0
LINQ Add/AddRange are overriding last row
I'm trying to add a list to a table with the 'Add' or 'AddRange' method, but they continue overriding the last row and finally I only have one row in database.
QueryService code:
private async Task Ad...
Félix
Votes: 0
Answers: 2
Why AppDbContext constructor is not invoked?
I am writing an api using aspnet identity, on configuring services I use .AddDbContext methdos but nothing happens. The construcotr of AppDBContext is not invoked. I set a breakpoint in AppDBContext t...
rusnakvlad
Votes: 0
Answers: 0