TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
srujana gudla
NA
28
21.1k
How to get the parents table third column of data in child table data in asp.net mvc3
May 2 2012 6:02 AM
Hi to all,
I developed my asp.net mvc3 app in code first basis
I am getting Lastname in dropdown list
is there any possible way to get the Name along with Lastname
public class people /getting data from User class
{
[Key]
public int groupid { get; set; }
[Required]
public string name { get; set; }
[Required]
public int UserId { get; set; }
[ScriptIgnore]
public virtual Users user { get; set; }
}
public class Users/parent table
{
[Key]
public int UserId { get; set; }
[Required]
[StringLength(100)]
public string LastName { get; set; }
[Required]
[StringLength(100)]
public string Name { get; set; }
[ScriptIgnore]
public virtual ICollection<people> people { get; set; }
}
Reply
Answers (
1
)
Checking Login in
Form Authentication