Click here to Skip to main content
15,123,851 members
Home / Discussions / C#
   

C#

 
AnswerRe: Basic Polymorphism Problem Pin
AmbiguousName4-Oct-12 21:56
MemberAmbiguousName4-Oct-12 21:56 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM694-Oct-12 22:35
professionalDaveyM694-Oct-12 22:35 
AnswerRe: Basic Polymorphism Problem Pin
AmbiguousName4-Oct-12 22:45
MemberAmbiguousName4-Oct-12 22:45 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM694-Oct-12 23:18
professionalDaveyM694-Oct-12 23:18 
AnswerRe: Basic Polymorphism Problem Pin
BobJanova5-Oct-12 1:52
MemberBobJanova5-Oct-12 1:52 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM695-Oct-12 2:19
professionalDaveyM695-Oct-12 2:19 
GeneralRe: Basic Polymorphism Problem Pin
BobJanova5-Oct-12 4:04
MemberBobJanova5-Oct-12 4:04 
QuestionC# linq group by Pin
rachel_m4-Oct-12 18:43
Memberrachel_m4-Oct-12 18:43 
I have the following linq to sql statement that I want to use in a C# 2008 application that connects to a sql server 2008 r2 database.
var  varGoodTransCount = (from t in rData.Trans
                           join iw in rData.Ibooks on t.Ibook_ID equals iw.Ibook_ID
                           join ip in rData.IPacks on iw.PID equals ip.PID
                           where ip.TNum == SPkgID 
                           group ip by ip.TNum into g
                           select new { TNum = g.Key, Frequency = g.Count() }).FirstOrDefault();

The line of code that has the problem is

If (varGoodTransCount.Frequency != null)

When I try to reference varGoodTransCount.Frequency, the error message says this is not an instance of an object.
Thus can you tell me what is wrong and how I can fix the problem?
AnswerRe: C# linq group by Pin
OriginalGriff5-Oct-12 0:19
mveOriginalGriff5-Oct-12 0:19 
GeneralRe: C# linq group by Pin
rachel_m5-Oct-12 3:48
Memberrachel_m5-Oct-12 3:48 
GeneralRe: C# linq group by Pin
OriginalGriff5-Oct-12 4:29
mveOriginalGriff5-Oct-12 4:29 
QuestionCrystal Reports : Database Login Prompt Issue Pin
Quam Chang4-Oct-12 17:36
MemberQuam Chang4-Oct-12 17:36 
AnswerRe: Crystal Reports : Database Login Prompt Issue Pin
AmbiguousName4-Oct-12 21:00
MemberAmbiguousName4-Oct-12 21:00 
QuestionAggregate data into 5 min interval Pin
bad_kid4-Oct-12 12:59
Memberbad_kid4-Oct-12 12:59 
QuestionC# linq Pin
rachel_m4-Oct-12 10:36
Memberrachel_m4-Oct-12 10:36 
Question.exe Reference Problem - maybe Pin
dirsow4-Oct-12 8:52
Memberdirsow4-Oct-12 8:52 
AnswerRe: .exe Reference Problem - maybe Pin
Eddy Vluggen4-Oct-12 10:01
professionalEddy Vluggen4-Oct-12 10:01 
GeneralRe: .exe Reference Problem - maybe Pin
dirsow4-Oct-12 10:27
Memberdirsow4-Oct-12 10:27 
GeneralRe: .exe Reference Problem - maybe Pin
Eddy Vluggen4-Oct-12 10:34
professionalEddy Vluggen4-Oct-12 10:34 
GeneralRe: .exe Reference Problem - maybe Pin
dirsow4-Oct-12 10:41
Memberdirsow4-Oct-12 10:41 
AnswerRe: .exe Reference Problem - maybe Pin
Bernhard Hiller4-Oct-12 22:00
MemberBernhard Hiller4-Oct-12 22:00 
Questionhow to setting Four tier application in my application? Pin
somasundarapandian4-Oct-12 5:28
Membersomasundarapandian4-Oct-12 5:28 
AnswerRe: how to setting Four tier application in my application? Pin
Dave Kreskowiak4-Oct-12 7:45
mveDave Kreskowiak4-Oct-12 7:45 
QuestionRe: how to setting Four tier application in my application? Pin
Eddy Vluggen4-Oct-12 10:02
professionalEddy Vluggen4-Oct-12 10:02 
AnswerRe: how to setting Four tier application in my application? Pin
OriginalGriff4-Oct-12 10:34
mveOriginalGriff4-Oct-12 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.