goose wrote:
Hi simmotech, I think that unless you have a very good reason to do it you should try to avoid that kind of solution, it seems cumbersome to me, like I said before I don't know the circumstances of your case. the caveats i can think of are the following: performance degradation and hard maintenance code (in the new adapter class, the one you'll create)
So, is it possible, yes, but somehow cumbersome to me.
Maybe you could elaborate a little more on your context of your solution.
Its an existing (fairly large) application so there is no chance of changing it really.
It uses an in-house derivative of something called Nexor. Basically you write an XML file for each entity including a TableName and a ViewName and then define the fields (View columns have a separate attribute so they are never written back). Entities are then generated from a template file.
So given that it isn't practical in this project to change everything to LLBLGenPro, I was wondering about running LLBLGenPro side-by-side for new modules (and possible gradual replacement of existing stuff in the future).
The simplest thing I could think of is to emulate what happens now: read from the View but write to the Table and since we have a convention that the view is called "<tablename>_VIEW" I was hoping it would be easy to detect this and make it transparent.
Cheers
Simon