one to many relationship in asp net entity framework with role
Code Example - one to many relationship in asp net entity framework with role
modelBuilder.Entity<Grade>()
.HasMany<Student>(g => g.Students)
.WithRequired(s => s.CurrentGrade)
.WillCascadeOnDelete();