Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

one to many relationship in asp net entity framework with role


modelBuilder.Entity<Grade>()
    .HasMany<Student>(g => g.Students)
    .WithRequired(s => s.CurrentGrade)
    .WillCascadeOnDelete();

Source by www.entityframeworktutorial.net #
 
PREVIOUS NEXT
Tagged: #relationship #asp #net #entity #framework #role
ADD COMMENT
Topic
Name
1+2 =