Bug in ObjectAdapter

Bug in ObjectAdapter

Old forum URL: forums.lhotka.net/forums/t/2568.aspx


cash_pat posted on Wednesday, March 21, 2007

Hi,

Object Adapter gives a error when i try to pass a EditableRootListBase to it.

regards

Cash

Jimbo replied on Saturday, April 21, 2007

Can't imagine why you would want to pass EditableRootListBase rather than the derived List object; however, one would imagine that the ObjectAdaptor is sending you a definite no no.

On the subject of DataAdapter bugs:  I am having exceptions with Nullable(of DateTime) properties. Can't provide much detail at this time - as I have not yet had time to persue the issue.

Jimbo







RockfordLhotka replied on Saturday, April 21, 2007

There are known issues with nullable<T> with strongly typed datasets for any type other than string. I don't know if that's your issue, but perhaps it is a clue?

Jimbo replied on Saturday, April 21, 2007

Basically, DataAdapter needs to be able to convert Nullable(of T) to DBNull.Value when creating the datatable rows.
When I pass a datagridview data source list its not a problem as the Null date (and or minValue) is preprocessed and expressed as an empty string; but passing the root BO (csla) list is when the exception will occur.
Again, until I have analysed the issue in more detail there is little more to contribute at this time.
Jimbo

Copyright (c) Marimer LLC