equivalent of OnSaveComplete in Adapter scenario

Posts   
 
    
Posts: 67
Joined: 10-Jun-2009
# Posted on: 11-Feb-2010 15:46:00   

I'm used to work with the Selfservicing template. In projects created with the selfservicing template I often use the ability to override the OnSaveComplete function of an Entity to create additional entities (of another entitytype).

I'm currently working on a project with the adapter template. What is the best practise to implement this functionality? I can't use the partial class because I have no DataAccessAdapter with proper connectionstring in the DatabaseGeneric project.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 11-Feb-2010 21:10:12   

Your best bet is probably to override OnBeforeEntitySave. See the documentation http://www.llblgen.com/documentation/2.6/Using%20the%20generated%20code/gencode_tapinroutinesevents.htm for more details.

DataAccessAdapter is in the DBSpecific project - that may be why you don't have one in the DBGeneric project simple_smile

Matt