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
Asp.Net Hein
NA
266
166.4k
How to convert anonymous type to my database type
Jun 17 2016 4:50 AM
var user = (
db.Users
.Where(u => u.CountryId == c)).Select(
u=> new { u.UserName, u.Email, u.Country.Name, u.PhoneNumber, u.LastLogin
});
In this code, the datatype of 'Select' part is 'anonymous'. I don't want anonymous datatype and I want db.Users type. Kindly let me know how to solve this and thanks a lot for viewing my question.
Reply
Answers (
2
)
Implementing the payment gateway
microsoft jscript runtime errors:objected expected