Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> migration v2.6 to v4.1
 

Pages: 1
Bugs & Issues
migration v2.6 to v4.1
Page:1/1 

  Print all messages in this thread  
Poster Message
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# Posted on: 19-Nov-2013 11:26:22.  
Hello,
Sorry, still in the middle of doing a migration ...

Somewhere in my code I found this:

DbUtils.CallRetrievalStoredProcedure("sp_spaceused", parms, spaceUsedDataSet, null);

Used to work like a charm ... now it doesn't anymore. DBUtils is unknown. Any additional references required?

Thans in advance,
Paul
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37644 posts
# Posted on: 19-Nov-2013 11:46:03.  
Please see: http://www.llblgen.com/documentation/4.1/LLBLGen%20Pro%20RTF/hh_goto.htm#migratingcode.htm

and scroll down to the breaking changes enlisted for v3.0. It's recommended you take a look at this list so you know what to expect.

Quote:

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.



Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# Posted on: 19-Nov-2013 13:09:40.  
... thanks ... sorry for not seeing that, I did scan that page when I started, but did not recheck it when I ran into the dbutils thing.

Results in:

Code:

DataSet spaceUsedDataSet = new DataSet();
SqlParameter[] parms = new SqlParameter[0];
CommonDaoBase c = new CommonDaoBase();
c.CallRetrievalStoredProcedure("sp_spaceused", parms, spaceUsedDataSet, null);
  Top
Pages: 1  


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

Version: 2.1.12172008 Final.