Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
c# - how to assign linq result to datatable ?
Mani Kandan
7y
233
1
Reply
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;
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Quartz scheduler
check spell mistakes in document and download it as pdf usin