I am fairly new to CSLA4 and in general I have had no issues working with it until I tried to create Fetch method that passed a Nullable<Boolean> value. I can pass either 'true' or 'false' however if I pass in 'null', I get a DataPortal Exception.
An unhandled exception of type 'Csla.DataPortalException' occurred in Csla.dll
Additional information: DataPortal.Fetch failed (Invalid operation - fetch not allowed)
It seems reasonable to be able to do this.
Is this a bug or simply just not supported? - Why not?
I think null means use parameter-less Fetch method, which you've not implemented. Change your DPF to take a SingleCriteria<bool?> and call it passing an instance of that class.
Copyright (c) Marimer LLC