linq question

2014-05-20 Thread anthonyatsmallbiz
Starting to enjoy linq but have dilemma.. I have 3 tables tasks, tasktags, and tags How can i create a linq query that returns all the tasks that have tag o f tagid=9 Some tasks may have many tags, so only want to return unique tasks. What methodology should i use to

Re: linq question

2014-05-20 Thread David Rhys Jones
If you have all the constraints set up correctly and you are using EF. from t in tasks .Include (TaskTags) .Include(TaskTags.Tags) where t.tagId = 9 select t; you should get back a nice object with all the info that you want. Davy. Davy, So you want to keep data which is local, only

debugging object

2014-05-20 Thread anthonyatsmallbiz
Anyone aware or use any tools to debug code at object level. Want to be able to out an object and its property values so i can get more info when an exception occurs in my winforms app? Maybe a nugget package? Anthony Salerno | Founder | SmallBiz Australia Innovation | Web | Software |

re: debugging object

2014-05-20 Thread Andrew McGrath
Not exactly sure what you are looking for in terms of a nuget package but I do the following: In the exception handler I call my own Debug.ReportException method to which I would pass the properties of the interesting object as Liststring, then I include the stack trace by calling this code:

RE: debugging object

2014-05-20 Thread David Kean
For application crashes/exceptions, just let Watson do its job: http://social.technet.microsoft.com/wiki/contents/articles/8103.application-crash-dump-analysis-windows-7.aspx. You can get very useful crash dumps that Visual Studio lets you debug into and inspect variables, objects, etc similar

Re: [OT] Copy Paste from protected Web page

2014-05-20 Thread noonie
Thanks Ken, IE and Chrome behave differently and, as the clipboard is involved here, things get even murkier. We're warming up WireShark as I write ;-) -- noonie On 20 May 2014 13:48, Ken Schaefer k...@adopenstatic.com wrote: I’d start by finding out whether the challenge is coming from

RE: [OT] Copy Paste from protected Web page

2014-05-20 Thread Ken Schaefer
So you’re using different browsers to access the different sites? What if you swap the browsers around? Does the behaviour follow the browser? Or stay with the website? That will probably give you a clue as to whether it’s a browser, proxy or website issue. Cheers Ken From: