RE: LINQ select nullable Id

2013-03-04 Thread James Chapman-Smith
Try this: int? id = (from t in things where t.Name == Foo select t.Id) .ToArray() .Concat(new int?[] { null }) .First(); Cheers. James. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg

Re: Custom Attribute

2013-03-04 Thread Mark Hurd
I was playing with Attributes to understand when they were created and found they were only created when someone looked for them. So I'd guess you'd need to ensure something does reevaluate the attribute. I'd guess you might have to mark the attribute, or its usage, in some way as not permanent

Re: LINQ select nullable Id

2013-03-04 Thread David Rhys Jones
Hi Greg. FirstOrDefault() will return 0 for non null Ints, So I'm guessing that t.Id is an (int). So you're going to have to do something like this. ListAB abs = new ListAB(); for (int i = 0; i 10; i++) { abs.Add(new AB { Id = i }); }

Re: LINQ select nullable Id

2013-03-04 Thread Mark Hurd
int? id = (from t in things where t.Name == Foo select new int?(t.Id)).FirstOrDefault(); On 4 March 2013 18:19, Greg Keogh g...@mira.net wrote: Folks, I want to select the int Id of an entity in a DbSet, or int? null if it's not found. Like this wrong sample: int? id = (from t in things

Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread Katherine Moss
I was wondering if this is the case with anyone else using the 64 bit version of Windows 8, it's the case for me, and I think that if the OS is 64 bit, then shouldn't most of the tools and applications running on it also be? Thanks for your input.

Re: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread Craig van Nieuwkerk
AFAIK, Visual Studio is still a 32bit application, so possibly related. On Tue, Mar 5, 2013 at 5:31 AM, Katherine Moss katherine.m...@gordon.eduwrote: I was wondering if this is the case with anyone else using the 64 bit version of Windows 8, it's the case for me, and I think that if the OS is

RE: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread Katherine Moss
Dang, it shouldn't be. What was Microsoft on when they made that decision? LOL. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Craig van Nieuwkerk Sent: Monday, March 04, 2013 4:10 PM To: ozDotNet Subject: Re: Does anybody know why the visual studio

Re: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread mike smith
I thought there was an intent to release an x64 version this time around, but a fast google didn't show one. On Tue, Mar 5, 2013 at 8:59 AM, Katherine Moss katherine.m...@gordon.eduwrote: Dang, it shouldn’t be. What was Microsoft on when they made that decision? LOL. ** **

Re: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread Craig van Nieuwkerk
When I download from MSDN it only lists 32 bit versions. On Tue, Mar 5, 2013 at 9:02 AM, mike smith meski...@gmail.com wrote: I thought there was an intent to release an x64 version this time around, but a fast google didn't show one. On Tue, Mar 5, 2013 at 8:59 AM, Katherine Moss

RE: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread David Kean
We have no intention on delivering a x64 version. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Craig van Nieuwkerk Sent: Monday, March 4, 2013 2:05 PM To: ozDotNet Subject: Re: Does anybody know why the visual studio 2012 developer command prompt

Re: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread mike smith
Heh. My question would be Why? And should third part software manufacturers that write code for Windows follow your lead in this? Yes, I know that the x86 version of VS2012 produces x64 code, but certain aspects of VS2012 are poorly integrated with its production. Resource editing with

RE: (sorry slightly off topic) Laptop Backpack

2013-03-04 Thread Nathan Chere
Standbags has a Navarro backpack for about AU$40 which survived roughly 600km of backpacking and music festivals while protecting a 15 laptop, external hard drive and DSLR +lenses. Handled travelling much better than a Targus pack I paid 3-4x as much for on my last trip. Still using it as my

RE: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread David Kean
http://blogs.msdn.com/b/ricom/archive/2009/06/10/visual-studio-why-is-there-no-64-bit-version.aspx What’s the Resource Editing with controls issue? From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of mike smith Sent: Monday, March 4, 2013 2:21 PM To: ozDotNet

RE: (sorry slightly off topic) Laptop Backpack

2013-03-04 Thread David Szkilnyk
I have been using a Tatkonka Server Pack for the last 10yrs, one word perfect! For me I ride a motorcycle (150klms a day) rain hail or shine with it and it has carried all my laptops over the years from my current 13in dell xps, to a asus 17in. It goes everywhere with me, it's my man bag, I

RE: Does anybody know why the visual studio 2012 developer command prompt points to a 32-bit path when on a 64-bit OS?

2013-03-04 Thread Katherine Moss
But this would also be a good place for this discussion, maybe? Since I am planning on learning how to develop on the .net framework for now, should I try learning, since there are a few ways in which one could compile an application, does it matter whether 32 bit, 64 bit, or the any CPU