Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Displaying multiple roles related to a single record
Ajay sutar
10 years ago
618
Reply
Dear Sir,
My name is Ajay Sutar. I am newly learning MVC 4, as we are about to initiate a new project in ASP .NET MVC 4. I am using a
details
scaffolding to display a single record. but now my single employee have multiple roles. As example,
Emp_no | Role | Salary
E1 | Software Engineer | 10000
E1 | Tester | 10000
as i have used Details scaffold and
FirstOrDefault
method of linq for this view, I am unable to display the second role "Tester" in the output. only first role is geeting displayed.
What i want is :
Emp_no : E1 Role: Software Engineer Salary:10000
Tester
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
I want to write a javascript code instead of url string in X
Same site look different on 2 different IIS