Hi Guys,
Background:
LLBLGen v2; 1year + experience using adapter model; LLBLGen is great!
Scenario:
We’re busy building a massive modular software framework. Some modules are dependent on others. We build separate DAL/DALSpecific projects per module.
Problem:
Want to be able to use one shared/generic DataAccessAdapter for most methods that’s shared by the software framework.
Why? Eg.
Module A is dependant on Module B.
So in Module B Method Foo() we have
DAA.StartTransaction(IsolationLevel.ReadCommitted, "Save Project");
DAA.SaveEntity(ModuleAEntity); <--- module A’s entity
DAA.SAveEntity(ModuleBEnitty); <--- module B’s entity
DAA.Commit();
Questions:
Is it ok using any DAA to do it like that?
Is there a way to create a generic DataAccessAdapter that could be shared by all the modules?
(I know I have to go ModuleX.DataBaseSpecific to get to the procs and stuff.)
Unfortunately we just don’t have enough time or insight in the product( Only got V2 the other day) to confidently go ahead as is.
Would be great to get some elegant solution to this problem.
Thanks,