WayneBrantley wrote:
2) The book http://www.lulu.com/content/174470 has an example of just this - and I think the answer is even in the free preview, although for $7.35, you might want to buy and support the Author/Community. EDIT The book is now free for download.
Thanks, I'll check that out
WayneBrantley wrote:
3) If the menu doesn't work, review your relationships and table design. If this is not right, it will not work. The base table should have a PK. The child table should have the PK of the base table in it - it should also be marked as a PK and have a FK relationship to the base table.
Ok, so it has to be designed a true 1:1? Unfortunately for other reasons I cannot do that without adding an extra table in the middle which would be just a lot of extra work. So, there is no other way to get LLBL to generate the inheritance if the Schema is setup up as a 1:m even though it really is conceptually a 1:1?
It would be nice if there was a way in LLBL to override the perceived relationship from a 1:m to 1:1 so that the inheritance would work.
WayneBrantley wrote:
4) There is an add-on template available for download that will insert a common base class for all Entities. You can then add that code in that one base class for all others to inherit. Check the download section.
Worth looking at further, thanks again. Essentially then the generated entity code would look like this?
Entity:
public override Save(params)
{
base.Save(); // performs my code, which throws an exception if no op
// std entity save code...
}
WayneBrantley wrote:
5) What did you choose and why?
Selfservicing for every reason listed under: "When to use SelfServicing". Of course I kind of grumble for future projects which will be distributed and thus need adapter model. I am not looking fwd to the extra coding work to regain related data loads (assuming I am reading examples right).