Please enable JavaScript.
Coggle requires JavaScript to display documents.
Configuring Relationship - Coggle Diagram
Configuring Relationship
-
-
-
One-To-Many
builder.HasMany(c => c.CinemaHalls).WithOne(ch => ch.Cinema).HasForeignKey(ch => ch.CinemaId).OnDelete(DeleteBehavior.Restrict);
-
OnDelete
-
ClientCascade
Cascade not supported by all the database for them we can use client cascade .Data will be removed at application level
-
-
-
Table Splitting
Everything configured as like other entities but only add builder.ToTable("Cinemas"); which will map to a custom table
-
-
-