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
dc
NA
663
0
C# linq count
Oct 4 2012 4:00 PM
I would like help with a linq to sql statement in a C# application. I am trying to count the number of occurences in the
Trans table. I am always getting a count of zero. There is only one record in the IM and IPack tables but there are 1 to hundreds
of records in the Trans table.
var varGoodTransCount = (from t in rData.Trans
join iw in rData.Im on t.I_ID equals iw.I_ID
join ip in rData.IPack on iw.PID equals ip.PID
where iw.TNum == PkgID
select new { }).Count();
Thus can you tell what what you think is wrong with the linq query above? Can you suggest how to change it?
Reply
Answers (
1
)
C# linq
C# linq to sql issue