Changing the "Entity" suffix into "EN" caused several side effects.

Posts   
 
    
Posts: 22
Joined: 11-Jan-2008
# Posted on: 22-Feb-2008 11:00:11   

I asked my team mate to do the following changes on our templates. [ ] - Determine how to change the following namespaces in llblgen. [ ] - EntityClasses -> Entities [ ] - FactoryClasses -> Factories [ ] - DaoClasses -> Mappers [ ] - RelationClasses -> Relations [ ] - CollectionClasses -> Collections [ ] - HelperClasses -> Helpers [ ] - TypeViewClasses -> TypeViews [ ] - TypeListClasses -> TypeLists

[ ] - Change "Entity" prefix into "EN" of generated classes [ ] - Move the DBSpecific classes into FWSI.MSSF.Data.Mappers project

The project was generated properly, and compiled successfully. No errors found on generated codes. But the issue arise when we run the code in a sample windows forms project.

Message: Exception = The element name 'AddressEN' isn't known in this provider Parameter name: elementName

this happens in all methods.

Environment: SqlServer 2005 llBLGen 2.5 Licensed - Final Version .NET 2.0 Windows Forms Adapter Pattern

I hope you can help me as this is a show stopped to us. I was suspecting tjhat its the renaming the "Entity" to "EN" class suffix that caused this issue. I tried to run an old prototype with the suffix is "Entity" and its working fine.

I deciced to change the suffix because I find it too long and does not conform with our naming standard.

Please help. thank you.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Feb-2008 11:35:45   

How or where exactly did they change it from Entity to EN?

Would you post the exact exception text and stack trace?

We can't guess what's wrong as we don't have your templates. Would you please post these templates?

Posts: 22
Joined: 11-Jan-2008
# Posted on: 22-Feb-2008 11:45:56   

Thank you for response but were able to resolved the issue already. We realized we haven't changed some of the "Entity" text in the EntityTemplate.

LBLGen was such a great product and everyone in our team is impressed how we can push development fast without much concern on Data Layer and Database schema changes. I will publish my experiences on my blog soon. More power.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Feb-2008 12:22:39   

Glad you sorted it out. Good luck to you and to your team simple_smile