Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

rename join table in many to many

modelBuilder.Entity<Food>()
    .HasMany(left => left.Menus)
    .WithMany(right => right.Foods)
    .UsingEntity(join => join.ToTable("TheDesiredName"));
 
PREVIOUS NEXT
Tagged: #rename #join #table
ADD COMMENT
Topic
Name
9+2 =