LLBLGen v1.1 upgrade to LLBLGen v3.5

Posts   
 
    
vivek
User
Posts: 45
Joined: 06-Sep-2012
# Posted on: 21-Dec-2012 09:03:52   

Hi Guys,

We had a .NET 1.1 application that was using 1.1 version of LLBLGen and now we are upgrading all our .NET 1.1 apps to .NET 4 and so using LLBLGen 3.5 for that. With this version of LLBLGen 3.5, i was wondering how would i do a statement like the following which was done using LLBLGen v1.1:

udtCustomerFilter.Add(PredicateFactory.CompareRange(CustomerSelectionFieldIndex.CustomerId, True, msSelectedIDs))

Also i am getting an error DBUtils is not a member of HelperClasses? Any guidance on this issue please?

Another error is EntityQuery is not defined? Help on this as well please?

Please help.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 21-Dec-2012 10:14:03   

PredicateFactory is not available anymore. Please check Predicate System

ABout DbUtils, from the docs=>Migrating your code=>Breaking changes of v.3.0:

SelfServicing: DbUtils has been removed. The static settings and methods are moved to the DaoBase class. The Db specific methods for sqlserver, like SetArithAbortFlag and SetSqlserverCompatibilityLevel are moved to the new class CommonDaoBase, which is located in the DaoClasses namespace. As DbUtils' public properties are not used frequently in an application, breaking code is minimal: rename the call / reference to the DbUtils member to a call to the CommonDaoBase class method / property instead. The DbUtils.CreateTransaction(3) method has been removed (there's no replacement in CommonDaoBase). The reason is that 'name' is no longer used. Use the overload which don't accept a name. This method also has been moved to DaoBase / IDao and is now no longer static. It's not likely you use this method in practice.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 21-Dec-2012 11:30:42   

Additionally,

udtCustomerFilter.Add(CustomerSelectionFields.CustomerId != msSelectedIDs);

should do the same thing as your statement.

Frans Bouma | Lead developer LLBLGen Pro