python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Non nullable property warning in DBcontext class for dbset property
I have my database context class as below
public class DataContext : DbContext
{
public DataContext(DbContextOptions options) : base(options)
{
}
public DbSet<Customer> Cus...
EagerToLearn
Votes: 0
Answers: 2
DBContext connection to SQL Server Express throws exception using the added app.config, what is missing?
Without using .net core, I worked on an existing .net framework 4.8 Console project that's missing app.config, trying to replicate the tutorial on how to create a dbContext to SQL Server Express. So I...
Datadump
Votes: 0
Answers: 0
Why won't my API's updated DbContext fetch a newly added DB column?
I have an Azure SQL DB that initially had the following columns:
user name
password hash
password salt
This DB serves a .NET Core C# API that checks username and password to return a JWT token.
The AP...
SGBCLDS
Votes: 0
Answers: 1
How to add second DbContext to existing EF project
I have an existing Ef DbContext (ApplicationDbContext) that connect to a MySql server with it's proper OnConfiguring and OnModelCreating function.
Now I must add a new DbContext (GeoDbContext) to a di...
Longa
Votes: 0
Answers: 1