Page 1 of 1

Default Methos in Entitity Developer

Posted: Fri 13 Aug 2010 11:36
by maxcpr
Hi!

I see in Entitity Developer that Table entities have DeleteMethodMapping, Insert... and Update... properties. What do they mean? And how could i use them? I haven't found any mention about them in documantation.

Thanks.

Posted: Mon 16 Aug 2010 12:12
by StanislavK
These properties allow you to use specific methods as insert/update/delete commands for a particular table. To use these properties, you should perform the following:
1) add needed methods (e.g., stored procedures) to your model;
2) use the 'Configure Behaviour' item of the popup-menu of the table entity;
3) specify the methods used on insert/update/delete in the dialog that will appear.

Feel free to contact us if something is unclear.

I must say - BEATIFUL

Posted: Mon 16 Aug 2010 12:46
by maxcpr
Hi!
I must say this is a beatiful aproach. And as far as i know Microsoft LINQ to SQL doesn't have similar feature?

Still it would be great if your Configure Behaviour window set procedures parameters automatically by parsing procedures parameter names and corresponding columns in a table
(I believe that many programmers define parameters for these procedures like %type_prefix% + COLUMN_NAME) and it would spare much time for the developers!

Posted: Tue 17 Aug 2010 15:43
by StanislavK
Thank you for your suggestion, we will investigate the possibility of implementing such functionality.

Posted: Fri 24 Sep 2010 16:52
by StanislavK
We have implemented default bindings of insert/update/delete method parameters to table columns. Binding is performed when the parameter is equal to the column name. This functionality is available in the new 1.0.41 build of LinqConnect (and in the new build of data providers as well). The LinqConnect build can be downloaded from
http://www.devart.com/linqconnect/download.html
(the trial version) or from Registered Users' Area (provided that you have an active subscription):
http://secure.devart.com/

The detailed information about the fixes and improvements implemented in LinqConnect 1.0.41 is available at
http://www.devart.com/forums/viewtopic.php?t=19077