Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read Records then Count Pin
Agent__00714-Oct-15 22:56
professionalAgent__00714-Oct-15 22:56 
GeneralRe: Read Records then Count Pin
Richard Deeming15-Oct-15 2:43
mveRichard Deeming15-Oct-15 2:43 
GeneralRe: Read Records then Count Pin
Agent__00715-Oct-15 4:05
professionalAgent__00715-Oct-15 4:05 
GeneralRe: Read Records then Count Pin
Richard Deeming15-Oct-15 4:10
mveRichard Deeming15-Oct-15 4:10 
GeneralRe: Read Records then Count Pin
Agent__00715-Oct-15 4:17
professionalAgent__00715-Oct-15 4:17 
GeneralRe: Read Records then Count Pin
macca2415-Oct-15 4:16
macca2415-Oct-15 4:16 
GeneralRe: Read Records then Count Pin
Agent__00715-Oct-15 17:58
professionalAgent__00715-Oct-15 17:58 
GeneralRe: Read Records then Count Pin
macca2427-Oct-15 5:49
macca2427-Oct-15 5:49 
C#
int complexQuery = (from e in mycontext.CreateQuery<new_eval>()
                                            
                                            where e.new_QW1 != null
                                            select e.new_QW1).Count();

                        

                        
                       if (complexQuery < 1)
                        {
                            var newQuery = "HasData";
                            entity.Attributes.Add("new_testcomplexquery", newQuery);
                        }
                        else
                        {
                            var newQueryToo = "Blank";
                            entity.Attributes.Add("new_testcomplexquery", newQueryToo);
                            

                        }

I want to use the results of complexQuery in an If statement but the value of complexQuery doesnt appear to be getting picked up. Anyone know why?
GeneralRe: Read Records then Count Pin
Agent__00727-Oct-15 16:41
professionalAgent__00727-Oct-15 16:41 
QuestionWhy does Navigation throw null exception when returning to a page 2nd time Pin
Sultan Uz Zaman13-Oct-15 19:30
Sultan Uz Zaman13-Oct-15 19:30 
SuggestionRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Richard MacCutchan13-Oct-15 21:41
mveRichard MacCutchan13-Oct-15 21:41 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Sultan Uz Zaman13-Oct-15 22:42
Sultan Uz Zaman13-Oct-15 22:42 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Richard MacCutchan13-Oct-15 22:45
mveRichard MacCutchan13-Oct-15 22:45 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Sultan Uz Zaman13-Oct-15 22:57
Sultan Uz Zaman13-Oct-15 22:57 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Richard MacCutchan13-Oct-15 23:22
mveRichard MacCutchan13-Oct-15 23:22 
AnswerRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
NeillJam14-Oct-15 0:24
NeillJam14-Oct-15 0:24 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Sultan Uz Zaman14-Oct-15 1:42
Sultan Uz Zaman14-Oct-15 1:42 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
NeillJam14-Oct-15 1:46
NeillJam14-Oct-15 1:46 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Sultan Uz Zaman14-Oct-15 20:21
Sultan Uz Zaman14-Oct-15 20:21 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
NeillJam14-Oct-15 20:55
NeillJam14-Oct-15 20:55 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
Sultan Uz Zaman14-Oct-15 21:40
Sultan Uz Zaman14-Oct-15 21:40 
GeneralRe: Why does Navigation throw null exception when returning to a page 2nd time Pin
NeillJam15-Oct-15 20:20
NeillJam15-Oct-15 20:20 
Questionis this the Best method to get prime numbers between a range Pin
Sujith Karivelil13-Oct-15 18:54
professionalSujith Karivelil13-Oct-15 18:54 
AnswerRe: is this the Best method to get prime numbers between a range Pin
OriginalGriff13-Oct-15 20:12
mveOriginalGriff13-Oct-15 20:12 
GeneralRe: is this the Best method to get prime numbers between a range Pin
Sujith Karivelil13-Oct-15 20:57
professionalSujith Karivelil13-Oct-15 20:57 

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.