Does anyone know of any examples where CslaIdentity is using the DataPortal to perform it's fetch rather than implementing it locally?
All my other business objects are calling through my DAL to get their data and I can't seem to get my CslaIdentity class to work when I try to move it's fetch to the DAL. A working example might help me figure out what's going wrong. I'm using CSLA 4.0 RC1 but any examples in the 3.x codebase should help.
Did you look at ProjectTracker? It has a custom identity object that flows through the data portal. I don't remember if it subclasses CslaIdentity or not, but that shouldn't really matter - it is a mobile object regardless.
I didn't ask my question correctly, I'm trying to implement ObjectFactory DAL methods for all my business objects and all of the examples I seem to find for CslaIdentity implementation seem to be using direct DataPortal_Fetch implementation rather than object factory ones. Both the rolodex and PTracker implment the fetch's inline with the business object definitions, rather than seperated into object factory calls.
Sorry for not being precise in my initial question, LOL it was perfectly clear in my head when I asked it.
You need to subclass CslaIdentity and apply the ObjectFactory attribute to your subclass so the data portal can pick up on it.
Or if we're talking CSLA 4, you'd subclass CslaIdentityBase<T> so you get all the good RegisterProperty and strong typed goodness.
Copyright (c) Marimer LLC