Database Specific

Posts   
 
    
mjeduar
User
Posts: 35
Joined: 14-Sep-2012
# Posted on: 24-Sep-2012 09:07:39   

Hi everyone,

I have the following problem, I have a new project and the client give us all the code and is working. Besides, the application was developed about 4 years(2009 with llblgen),

The problem is I dont have the lblgenpro project files, so I decided to generate all the code with lblgenpro but is totally different I used version (2.0), and now the application is showing the following error.

**Error 1 The type or namespace name 'DatabaseSpecific' does not exist in the namespace 'orf.BusinessLayer' (are you missing an assembly reference?) **

I noticed the old code has other folder with more classes generated called "DatabaseSpecific" in it there are the following files

DataAccessAdapter.cs ActionProcedures.cs App.config-> it has a connection configuration in it PersistenceInfoProvider.cs RetrievalProcedures.cs

My question is....

**How could I generate this folder? ** !it seems to have a different way to generate.!

The header of these file is:

///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 2.5
// Code is generated on: Monday, 11 May 2009 12:55:17 PM
// Code is generated using templates: SD.TemplateBindings.SqlServerSpecific.NET20
// Templates vendor: Solutions Design.
// Templates version: 
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;
using System.Data.Common;

#if CF || CEDesktop
using System.Data.SqlServerCe;
#else
using System.Data.SqlClient;
#endif

#if !CF
using System.Configuration;
using System.EnterpriseServices;
#endif

using SD.LLBLGen.Pro.ORMSupportClasses;
using SD.LLBLGen.Pro.DQE.SqlServer;

namespace CaromaDorf.BusinessLayer.DatabaseSpecific
{
    
    // __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
    // __LLBLGENPRO_USER_CODE_REGION_END
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 24-Sep-2012 11:00:52   

Did you select 'selfservicing' instead of adapter as template group when generating code?

Frans Bouma | Lead developer LLBLGen Pro
mjeduar
User
Posts: 35
Joined: 14-Sep-2012
# Posted on: 25-Sep-2012 01:56:36   

I tried both selfservicing and adapter as well but none of them give me something similar to the code of the folder Database Specific

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 25-Sep-2012 05:51:15   

Hi mjp,

Some comments:

  • LLBLGen version. The code you showed to us was generated using LLBLGen v2.5. Try to use the same version, otherwise you will face compilation or runtime errors because the changes between v2.0 and v2.5.

  • The code was generated using the Adapter TemplateSet. So when you generate yours, use the same. More about TemplateSets...

  • The namespace of the old file is CaromaDorf.BusinessLayer.DatabaseSpecific. Your compilation error makes me think that you generated the code using orf.BusinessLayer namespace. To change this change the RootNamespace parameter in the Code Generation Wizard. More about generating code....

When you have all the code compiled and running, consider to upgrade at lest to v2.6, which is the oldest supported LLBLGen version. We are now on v3.5 btw wink

David Elizondo | LLBLGen Support Team
mjeduar
User
Posts: 35
Joined: 14-Sep-2012
# Posted on: 25-Sep-2012 06:09:47   

Where I could get the Adapter TemplateSet?

Thank you for your answer

M...

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 25-Sep-2012 08:06:33   

mjeduar wrote:

Where I could get the Adapter TemplateSet?

When you generate code in your LLBLGen Project, you select the template group/set you want. See the "generating code" link I posted above.

David Elizondo | LLBLGen Support Team
mjeduar
User
Posts: 35
Joined: 14-Sep-2012
# Posted on: 26-Sep-2012 02:09:15   

Thank you the version 2.5 generated this folder. sunglasses