>From p In GetSession.Linq(Of ProductPrice)() _
Where p.WhseCode = 100 _
Select p.ProductID

2009/9/18 JamesSpibey <[email protected]>

>
> Hi,
>
> I'm having difficulty querying a nullable field using  NH Linq. For
> Example
>
> From p In GetSession.Linq(Of ProductPrice)() _
> Where p.WhseCode.Value = 100 _
> Select p.ProductID
>
> This fails with the following error
>
> could not resolve property: WhseCode.Value of:
> MyCompany.Data.ProductPrice
>
> Clearly it can't match the .Value on the Nullable value back to the
> mapped field on the object. Is there a way around this?
>
> Thanks
>
> James
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to