Taking over project, new to LLBLGen; having trouble adding entities

Posts   
 
    
Posts: 2
Joined: 01-Apr-2013
# Posted on: 01-Apr-2013 17:32:53   

I'm taking over a project from a developer who is not available for consultation, and I'm new to LLBLGen Pro (and O/R mappers in general, if you detect trepidation...)

This project is using LLBLGen Pro v3.1 on a .NET 3.5 soution with a SQL Server 2005 database. I have added a schema and tables to the database, and need to add the entities to access those new tables. I'm trying to fight the temptation to revert to writing the data access myself in the interest of learning something new, etc, but...

The problem: when building the solution after generating the code including the new entities, I get 183 build errors, falling into 3 categories: 1. 'CommonEntityLayer.RelationClasses.StaticArchivedOrderDetailRelations' is inaccessible due to its protection level 2. 'CommonEntityLayer.RelationClasses.StaticArchivedOrderDetailRelations' does not contain a definition for 'ArchivedOrderEntityUsingOrderIDStatic' 3. CommonEntityLayer.RelationClasses.VendorAccountRelations' does not contain a definition for 'ArchivedOrderEntityUsingVendorAccountID' and no extension method 'ArchivedOrderEntityUsingVendorAccountID' accepting a first argument of type 'CommonEntityLayer.RelationClasses.VendorAccountRelations' could be found (are you missing a using directive or an assembly reference?)

These appear to be all related to the new entities (new schema is 'Archive' and new tables match the original Order, OrderDetail, etc tables with "Archive" prefixed to table name)

My process was thus: Open a copy of the original .llblgenproj file in the designer, add the schema to the DB in the right panel, select the tables, then "Reverse-engineer to Entity Definition(s)."

I have attached the resulting llblgenproj file, please let me know if you need any more information

Thanks for any advice...

Attachments
Filename File size Added on Approval
CommonEntityLayer.llblgenproj 144,845 01-Apr-2013 17:33.20 Approved
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 01-Apr-2013 19:32:07   

I can't generate the code, coz it's asking for some TypeConverters, that I don't have.

Anyway, could you please try generating the code into a new empty folder, and see if you will get the same compilation error?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 02-Apr-2013 09:22:46   

The CommonEntityLayer.RelationClasses.StaticArchivedOrderDetailRelations error, is that class available in your code? There's no entity with the name 'StaticArchivedOrderDetail' in the project. The error is originating in the generated code or in your code referencing the generated code?

Every generated file has a timestamp at the top of the file. Please check in the file where the error originates whether these are re-generated or if they're old files.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 2
Joined: 01-Apr-2013
# Posted on: 02-Apr-2013 17:57:49   

Walaa wrote:

Anyway, could you please try generating the code into a new empty folder, and see if you will get the same compilation error?

Doing this appear to have fixed the issues. Thanks so much!