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
acrombie
NA
3
0
Passing a record to a function using IQueryable
May 24 2011 1:44 AM
Here is my code :
I am changing my 'old' code to LINQ and found it to be a big improvement. However, my knowledge of LINQ (v 3.5) is very basic but I need to solve just this one
point for my application to work.
Any suggestions will be appreciated.
Amien
Cape Town
South Africa.
IQueryable<AllDevice> xDevice = from c in dbC.AllDevices
select c;
foreach (var rec in AllDevices)
{
if (rec.isActive == true)
{
ucDevice ucf = new ucDevice(rec) // ???? - I want to pass the record 'r' to a function elsewhere but 'r' is type Var. In my old app, i used DataView/DataViewRow to pass the record but I want to use LINQ
}
}
// This is the function in another class expecting the record
public ucDevice (????) // Datatype of rec ??
{
InitializeComponent ();
{
// here I want to work with the 'record' I passed to this method.
}
}
Reply
Answers (
4
)
for what purpose LINQ is use?
Month name in LINQ