Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> v 4.0 TVF mapped TV GetDbCount method missing
 

Pages: 1
Bugs & Issues
v 4.0 TVF mapped TV GetDbCount method missing
Page:1/1 

  Print all messages in this thread  
Poster Message
raist
User



Location:
Madrid, Spain
Joined on:
19-Apr-2010 23:57:10
Posted:
114 posts
# Posted on: 18-Apr-2013 20:26:06.  
Could it be possible to generate the GetDbCount method for TVF mapped TypedViews?
It should be quite straight forward. Something like:
Code:
public virtual int GetDbCount(string alias, System.DateTime orderDateStart, System.DateTime orderDateEnd,
System.Int16 orderCount, bool allowDuplicates, IPredicate selectFilter, IGroupByCollection groupByClause)
{
        var relations = new RelationCollection(new DynamicRelation(TvfCallFactory.FxOrdersByDateRangeAndCount(alias,
                 orderDateStart, orderDateEnd, orderCount))) { SelectListAlias = alias };
        return DAOFactory.CreateTypedListDAO().GetDbCount(GetFields(), null, selectFilter, relations, groupByClause, allowDuplicates);
}


(It works)
Best regards
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
38097 posts
# Posted on: 20-Apr-2013 10:41:32.  
Indeed, this is an oversight. We'll add it to the v4 templates. Thanks for reporting!

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
38097 posts
# Posted on: 26-Apr-2013 12:42:21.  
Implemented in next build.
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
raist
User



Location:
Madrid, Spain
Joined on:
19-Apr-2010 23:57:10
Posted:
114 posts
# Posted on: 20-May-2013 18:04:37.  
Perfect

  Top
Pages: 1  


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

Version: 2.1.12172008 Final.