2.6 code generation question.

Posts   
 
    
IowaDave
User
Posts: 83
Joined: 02-Jun-2004
# Posted on: 24-Sep-2008 23:00:00   

Using LLBLGEN PRO 2.6 Final June 6th, 2008 .net framework 3.5 sp1

Trying to move from 2.5 version - some questions.

Target platform .NET 3.5 Template Group = Adapter

Why do I get the tablenameEntity and tablename_Entity generated?
I don't get why it's generating 2 entity cs files per entity, one with the "_" and one without.

I also get 2 files for each entity in Relations.

To be more verbose:

I am looking for the least painful way to move from llblgen 1.0.2004.2

We have converted our llblgen projects to Visual Studio 2008 and want to move to 2.6 so we can use Sql Server 2005 for llblgen code generation. Currently I am doctoring the ddl so the db objects will create on a 2000 server and llblgening and using all the generated code with our updated projects. Now we want to move up to 2.6 so we don't have to use 2000 for llblgening.

Under 1.0.2004.2 we used the following generation settings:

Name: Adapter scenario (Full / Safe) Vs.Net 2003 Version: 1.0.2004.2.04222005 Vendor: Solutions Design Description: Adapter. Generates code for the Adapter scenario. Generates a database specific and a database generic project. Use this configuration to start your project as it generates all classes, including the entity classes. Validator classes are initially created but never overwritten. It will also create a VS.NET 2003 project file for both projects, however will never overwrite these files. Amount of tasks: 33

The template set : Name: C# template set for SqlServer (1.0.2004.2) Version: 1.0.2004.2.071205 Vendor: Solutions Design Target language: C#

What would be the best (easiest) way to get comparable output using 2.6 ?

Out of the box, I don't get validator classes (not a big deal) , The PredicateFactory.cs, SortClauseFactory.cs

What are the gotchas?

Thanks.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 25-Sep-2008 06:45:47   
Why do I get the tablenameEntity and tablename_Entity generated? 

Maybe you added the entities twice in your project. For example, you added Customer, then added again, so the project have Customer and Customer. When you generate that will, of course, generate code for the two entities (Customer and Customer).

Also, you still use v2.5 (or 1.0.2004.2 ??) and you want to move to v2.6, is that correct?

You should start reading the Migration your code section. You can use the BackwardsCompatibility tempate at top (at template bindings tab so at least some things of your old code should work without changes.

David Elizondo | LLBLGen Support Team