This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I hit a problem when I am querying a table with some null values. The problem occurs when I use LINQ to project a new object. I set some of my properties to a "Nullable" type (those fields I know that will have null values). Could you please shed some light on this or give me some idea on what is happening? Appreciate your help on this. Below is sample of my code. Sample Code:
Sample Entity:
|
|
|
I seem to find the answer to problem but your thoughts are still welcome. Basically, before I do a projection I converted the output to a "List". Something like this:
Just want to know if in lightSpeed it is required to do this before performing any projection? Note that I did the same with other ORM like Entity Framework and NHIbernate and I did NOT get this problem. Appreciate your response on this. |
|