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
Lokesh K
NA
148
41.2k
Anonymous type error
Sep 29 2017 3:11 PM
Hi,
While returning data it throws Anonymous types error like below mention code
public EncounterUserDto GetUserRolesByUserId(Guid userId)
{
var userRolesList = from u in _unitOfWork.Repository<User>().GetEntityAsQuerable()
join r in _unitOfWork.Repository<Role>().GetEntityAsQuerable()
on u.RoleId equals r.RoleId
select new
{
userRoleId = u.RoleId,
userUserId = u.UserId,
roleRoleId = r.RoleId,
roleValue = r.Value
};
return userRolesList;
}
while retun it throw as anonymous types error.
if anyone knows pls reply
Reply
Answers (
4
)
How to connect sql server over internet from remote system?
Project builds well but it can`t run