Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> Bug in DOC in How do I ...
 

Pages: 1
Bugs & Issues
Bug in DOC in How do I ...
Page:1/1 

  Print all messages in this thread  
Poster Message
Rosacek
User



Location:
CZ
Joined on:
18-Mar-2012 18:02:44
Posted:
133 posts
# Posted on: 24-Apr-2014 21:04:00.  
LLBLGen Pro Help
Best practises -> How do I -> How do I get the MAX(Order.ShippingDate - Order.OrderDate) value from a customer's orders ?

ADAPTER

' VB.NET
Code:
Dim adapter As New DataAccessAdapter()
Dim maxValue As Integer = CInt(adapter.GetScalar(OrderFieldIndex.OrderId, (OrderFields.ShippedDate - OrderFields.OrderDate), _
    AggregateFunction.Max, (OrderFields.CustomerId == _customerId)))


'instead of OrderFieldIndex.OrderId should be OrderFields.OrderId
'and instead of == should be just =

Code:
Dim maxValue As Integer = CInt(adapter.GetScalar(OrderFields.OrderId, (OrderFields.ShippedDate - OrderFields.OrderDate), _
    AggregateFunction.Max, (OrderFields.CustomerId = _customerId)))


  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8088 posts
# Posted on: 25-Apr-2014 07:43:00.  
Hi Rosacek,

You are right, that should be changed in v4.1 LLBLGen Famework documentation. We will look into it.

Thanks for the feedback Wink


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37645 posts
# Posted on: 28-Apr-2014 10:16:37.  
Fixed in next build.
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.