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
yash patel
1.4k
286
21.4k
getting error in list while displaying data in a single view
Sep 29 2020 3:04 AM
while creating list for both tables user and user address I m getting the below error for both the tables
Code Description Project File Line Suppression State Error CS0029 Cannot implicitly convert type 'System.Collections.Generic.List<nsroute.DataAccess.UserAddress>' to 'System.Collections.Generic.List<nsroute.UserAddress>'
controller:
public
ActionResult Dashboard()
{
nsrouteEntities obj =
new
nsrouteEntities();
List<User> userlist = obj.Users.ToList();
List<UserAddress> useraddresslist = obj.UserAddresses.ToList();
getting error
in
this
bold text
return
View();
}
can anyone tell me on how to display data from multiple tables in a single table of a view in mvc5
Reply
Answers (
1
)
How to read the data in the .txt file from 4 different paths
How many ways are there to communicate between two classes