Projectors and Nullable Types

Posts   
 
    
ChBaeumer
User
Posts: 175
Joined: 23-Oct-2003
# Posted on: 02-May-2006 17:31:45   

Hi,

the new version looks promising.

Just a question. I'm invastigating the functionalities of the new version. One (cool) thing is the possibility to project data to other entity presentations.

I stumbled over the problem that .Net 2.0 has introduced Nullable types but do not support them in their data access code like DataTable.

So projecting entities to a datatable does not work if the entity field is nullable.

Since it is not possible to change the db schema how can I work around this problem? Writting my own mapper? Can the OrmSupport classes take care of this?

Thanx and best regards

Christoph

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 02-May-2006 18:06:23   

Thanks for the report. I'll file it as an issue, as I think the shipped EntityPropertyprojector classes should be able to handle it. However, you can derive a projector class from the used projector class and override ValuePostProcess to change the value.

THough I'll look into it.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 03-May-2006 18:42:33   

Fixed in next build simple_smile

Frans Bouma | Lead developer LLBLGen Pro