SP Mapped to a method

Posts   
 
    
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 01-Sep-2005 00:36:48   

It looks like I can map an SP to an Object/Class. Is there anyway to map it to a method. Lets say I have an entity that has a responsibility to Do X. However, X is alot of data munging so I want to write the code in T-Sql rather than bring back an object graph, manipulate the objects then store back the data.

So, is it possible map an SP to a method on an entity?

BOb

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 01-Sep-2005 05:19:53   

Take a look at this pages in the LLBLGen User Manual:

Generated code - Extending the framework through inheritance, Adapter

With this background you'll see what is needed to add a method to your entity that calls a stored procedure.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 01-Sep-2005 10:26:10   

To make life easy: use the Extended entity classes for adapter templates from the third party section to generate these extended entities for you. You then simply add the code to these classes.

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 01-Sep-2005 16:31:03   

OK, thanks I'll look at it.

BOb