Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> May I have calculate fiedl in typedlists
 

Pages: 1
LLBLGen Pro Runtime Framework
May I have calculate fiedl in typedlists
Page:1/1 

  Print all messages in this thread  
Poster Message
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# Posted on: 20-Sep-2005 02:41:33.  
May I have calculate field in typedlists

select code,qty,cost,qty*cost as netamount from parts
  Top
Drewes
User



Location:
Columbus, Ohio
Joined on:
18-Aug-2003 15:25:34
Posted:
67 posts
# Posted on: 20-Sep-2005 03:10:25.  
That is not possible, you might consider using a creating a view in the database itself and using that, however views can't be used in typed lists.

  Top
Paul.Lewis
User



Location:
Columbus Ohio USA
Joined on:
22-Aug-2005 21:06:58
Posted:
147 posts
# Posted on: 20-Sep-2005 04:44:01.  
nopchan wrote:
May I have calculate field in typedlists

select code,qty,cost,qty*cost as netamount from parts


You should be able to add an expression to a dynamic list that will give you the desired results.

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

Generated code - Field expressions and aggregates

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37805 posts
# Posted on: 20-Sep-2005 09:57:50.  
Actually, you can, with a workaround: derive a class from your typedlist class and override the routine which builds the resultset (this depends on what you're using: adapter or selfservicing), then add the expression object as Paul suggested, to the field.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.