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)
How to add foreign keys in multiple table in ASP.NET Core MVC code-first approach?
ApplicationDbContext.cs
public class ApplicationDbContext : DbContext
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
{
}
...
Kaushik Ghosh
Votes: 0
Answers: 2
EFCore codefirst migrations and the aspnetcore_environment
I've been using workarounds for a while for this issue, but figured I'd ask online and see if anyone has any hints or alternate methods for what I'm trying to achieve.
I have a very basic core 3.1 MVC...
jamheadart
Votes: 0
Answers: 1
Entity Framework code-first many-to-many relation "may cause cycles"
I have a class that has a many-to-many relation (with some additional relation information) to instances of the same class, like this:
public class Aaa
{
[Key]
[MaxLength(25)]
public strin...
AppleMoose
Votes: 0
Answers: 1
Many to Many, self join - how to do this, code first in Fluent Api, EF Core 6?
https://i.stack.imgur.com/VOvHl.png
So basically, I want to be able to define a User and have them be able to have a list of other Users that I designate as their friends - for some reason I'm stumped...
TikTakToe
Votes: 0
Answers: 1