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
Abhilash J A
536
2.4k
596.4k
c# - how to assign linq result to datatable ?
Dec 1 2016 5:03 AM
Hello everyone,
DataTable dt =
new
DataTable();
var userList = (from U
in
unitOfWork.UserSetUpRepository.Get().ToList() join A
in
unitOfWork.Tble_LoginRepository.Get().ToList() on U.Id equals A.UserId select
new
{ U, A }).SingleOrDefault();
dt = userList;
//Here, How can I assign userList value to dt ?
var userList1 = from myRow
in
dt.AsEnumerable()
where myRow.Field<
bool
?>(
"IsActive"
) ==
null
?
true
: myRow.Field<
bool
?>(
"IsActive"
) ==
true
select myRow;
Reply
Answers (
1
)
Quartz scheduler
check spell mistakes in document and download it as pdf usin