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
2
Reply
How to convert anonymous type to my database type
Asp.Net Hein
8 years ago
267
Reply
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.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
picture in picture object using path in crystal report
Javascript numeric validation