Hi,
I'm using LLBLGen 4.2 (Release December 11th, 2015) and what I'm trying to do is pretty simple - using DI architecture (Unity), I'm injecting a simple class instance in all my business classes requests in order to be able to set the user that is creating / updating data - this is working and I don't have any issue so far.
So, the flow is like this:
a) create the instance of a model class in UI with data taken from the UI
b) UI calls BL (Business Layer) in order to save that model class (that is transformed into an entity) - here, using DI, UI also injects into BL the info regarding the current authenticated user
c) the BL saves the entity using LLBL.
Perfect!
My issue is when I'm sending from UI to BL a more complex structure (for example invoice with collection of invoice details) because in BL the saving process is just one line (thanks to LLBL and recursive save) but at this point I have no idea how can I set the user info on the "children" entities (in my case - the invoice details entities). I'm looking for a way of traversing all "children" entities and entity collections to see if there is something and automatically set the user info.
Thank you in advance for your guidance.
Evdin