v 4.0 TVF mapped TV GetDbCount method missing

Posts   
 
    
raist
User
Posts: 114
Joined: 19-Apr-2010
# 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:

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

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# 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 | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 26-Apr-2013 12:42:21   

Implemented in next build.

Frans Bouma | Lead developer LLBLGen Pro
raist
User
Posts: 114
Joined: 19-Apr-2010
# Posted on: 20-May-2013 18:04:37   

Perfect