Few questions around code navigation:
How can I find all references to dataportal update for a particular class which inherits from BusinessBase?
My ideas so far
Is dataportal_update only called from Base.Save() ?
Is there any way to find the code which calls Save for the derrived class only? (FindReferences finds all implementations of BusinessBase)
You are wanting to do this with some sort of static code analysis tool?
That might be quite challenging, because any code can interact with the data portal to call DataPortal.Update<T>. _Normally_ this is done by calling Save on an editable root object, but there's nothing that enforces that convention.
Thanks for the response. I'm just trying to look at the impact of a change made at sql stored proc level. Its only used by one business object (businessbase) in the dp_update but that object is referenced by many others. I only seem to be able to find references to the object itself (120 references) or to ALL of the save methods (as its implemented by base class i am unable to find only for this implementation - 300 references).
It seems a rather large limitation if i am unable to look at the impact of my change... hopefully its just me not explaining it correctly
You should be able to profile the stored procedure before your changes and after; the fact that you're using Csla to call it doesn't really matter. Maybe I'm misunderstanding the scope of your change though.
Copyright (c) Marimer LLC