LoadProperty questions

LoadProperty questions

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


Shazam posted on Thursday, March 17, 2011

I'm converting our project CSLA 4.1.0 from CSLA 3.8.3.0.  I've noticed that some of the LoadProperty statements in DataPortal_Fetch throw an invalid cast exception. They're managed properties of type bool, and the dataReader column type is bit.  I now have to call Convert.ToBool whereas before it would just work.  There are a few other conversions that don't work anymore either.  What changed?

Also, should I be wrapping using(BypassPropertyChecks) around the LoadProperty() statements?

Shazam replied on Monday, March 21, 2011

Anybody?  Bueller, Beuller?

RockfordLhotka replied on Monday, March 21, 2011

The non-generic LoadProperty overloads were completely rewritten in CSLA 4.

The generic LoadProperty overloads are mostly unchanged.

Copyright (c) Marimer LLC