Default Methos in Entitity Developer

Default Methos in Entitity Developer

Postby maxcpr » Fri 13 Aug 2010 11:36

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.
maxcpr
 
Posts: 33
Joined: Wed 10 Dec 2008 14:46

Postby StanislavK » Mon 16 Aug 2010 12:12

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.
StanislavK
Devart Team
 
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

I must say - BEATIFUL

Postby maxcpr » Mon 16 Aug 2010 12:46

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!
maxcpr
 
Posts: 33
Joined: Wed 10 Dec 2008 14:46

Postby StanislavK » Tue 17 Aug 2010 15:43

Thank you for your suggestion, we will investigate the possibility of implementing such functionality.
StanislavK
Devart Team
 
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Postby StanislavK » Fri 24 Sep 2010 16:52

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
StanislavK
Devart Team
 
Posts: 1710
Joined: Thu 03 Dec 2009 10:48


Return to LinqConnect (LINQ to SQL support)