I use EF 6, and if I use a hardcode database connection in the OnConfiguring: protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
I am using Visual Studio 2019 community edition. I want to connect to MySQL using Entity Framework core. I do not want to use Entity Framework 6. I am running i
I've been wrestling with this for a while and can't quite figure out what's happening. I have a Card entity which contains Sides (usually 2) - and both Cards a
Just created a new dotnet web app and can't quite get to create my database. In my Infrastructure Layer I added a dbcontext : public class SurveyContext : D
I'm working on a Blazor app that's similar to Facebook groups, I have to make a notification function where users can receive a notification message when someon
I'm getting an error while trying to EF database update. I have 2 entities, Flight and City: public class Flight : Entity<Guid> { public Airline Air
Little introduction: we have a complex entity and overgrown business logic related to it. With various fields that we can change and fields that updates from ex
I have a main table "SALES" and two secondary tables "PRODUCTS" and "SERVICES", I need to select only the records in "SALES" that contain some product or servic
Good day, I'm having issues connecting to my EFS module from ECS fargate. Everything is built in Terraform. Here are the relevent files: efs.tf resource "aws_ef
I updated the title to be more relevant. I have two objects and wish to use EF Core to map them to a database using code first. I have shortened them a bit for
I know how to seed data to a database with old .NET 5.0 in startup.cs file using my Seeder class with a Seed() method creating some initial data. public void Co
Is it okay to do the identity without using ASP.NET Core Identity? I ask because registration for me is teaking data from user, hash password and put data with
I've a Page entity dependent on Investor entity as investor creates a page: public class Page { [Required, DatabaseGenerated(DatabaseGeneratedOption.Identit
my meta description tag is not showing on google result page as well as favicon. my technology stack consist of - reactjs on frontend & entity framework on
I am programming a multilevel menu / submenu in ASP.NET MVC. I have this table: Id Name ParentId ---------------------------------- 1
I recently upgraded to .Net 6 and it's seems that Microsoft has removed Microsoft.EntityFrameworkCore.MutablePropertyExtensions.SetValueComparer although nothin
If I have an ERD: https://i.stack..com/gj3Sn.png Which I'm trying to type up in postgres SQL. How could this be done? So far i've got:
I have 2 classes; Product and Book. Book is subclass of Product. In my DbContext there is only DbSet of Product. I'm using EF Code-First approach. when EF creat
We have started a new project in .NET Core. We are just starting out and we are hitting a Web API endpoint to get some reference data of 8 records. We noticed
For a .net framework 4.8 project, when I update the EF reference from 6.2 to 6.4.4 the application throw an error System.MissingMethodException: Unable find 'V