-
Hello all. I'm using Authorization Rules in my Business Objects but when any Authorization Rule is broken the message provided on the exception do not fits my needs. I was reviewing the implementation of the DataPortal class and CSLA throws a Security Exception and loads the exception message from...
-
Well you wouldn't throw a DataPortalException; create your own exception like NoMoreKeysException. Although the handler you have should be working, although there is Csla.DataPortalException and Csla.Server.DataPortalException. Perhaps you're throwing the one in the server namespace (b/c you...
-
Well, throwing an exception is probably your best bet. If you don't want the UI to handle a DataPortalException, and instead handle your specific exception, you can override your Save method and throw the BusinessException from the DataPortalException.
-
in DataPortal_Insert I use a stored procedure to get the next free key to assign to my BusinessObject when beeing inserted into the database. As the key generation saves the used key to the database, I would prefer not to get the key prior to DataPortal_Insert. What would be the best way to communicate...