Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Passing nullable types to DataPortal.Fetch

$
0
0

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?


Viewing all articles
Browse latest Browse all 764

Trending Articles