Mark,
>So my question is: how can I get the same control of the primary key generating process as described above ?(use of stored procedure in the database). And where do I have to put the necessary code?
If you want to prefetch primary keys, you can put code in your business objects HookSetDefaultValues() method. You can call out to a stored procedure to retrieve the next value and put it in the primary key column of your new DataRow.
If you want to do this for ALL business objects in your project, you can put the code in the ABusinessObject class.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com