Answers for "rename join table ef core"

C#
0

rename join table ef core

//This is for a generated join table that isnt referenced by Data Annotations
modelBuilder.Entity<Food>()
    .HasMany(left => left.Menus)
    .WithMany(right => right.Foods)
    .UsingEntity(join => join.ToTable("TheDesiredName"));
Posted by: Guest on May-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language