'sortclausefactory' does not exist in the current context when migrating from V1.x to 5.7 version

Posts   
 
    
mary
User
Posts: 11
Joined: 24-Feb-2022
# Posted on: 07-Mar-2022 14:48:06   

Hi,

Am working on LLbgen migration from 1.x to 5.7 version.. Am getting issues while building the newly migrated code.

Below is my existing code which using the LLBLGen version 1.x

public ISortExpression CreateSortExpression() { ISortExpression sorter = null; //add to switch new tables. switch (_sortTable) { case "UserEntity": sorter = new SortExpression(SortClauseFactory.Create((UserFieldIndex)_sortField, _sortDirection)); break; }

UserFieldIndex is a enum

After migration to 5.7 version , am getting The name 'SortClauseFactory' does not exist in the current context

sorter = new SortExpression(SortClauseFactory.Create((UserFieldIndex)_sortField, _sortDirection));

Could you please help me on this. Alternative way to rewrite based on 5.7 version

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39589
Joined: 17-Aug-2003
# Posted on: 07-Mar-2022 15:03:00   
Frans Bouma | Lead developer LLBLGen Pro