Typed Lists being duplicated by refresh

Posts   
 
    
jg
User
Posts: 25
Joined: 29-Dec-2011
# Posted on: 17-Jan-2012 21:25:26   

We have recently upgraded from 2.6 to 3.1 and I finally got all the bugs worked out (or so I thought). Then today when I refreshed the Relational Model Data from the Database, I noticed that it modified almost all my Typed Lists. The names were modified by putting an underscore after them which is generally what happens when you add duplicates. I then tried to rename them to remove the underscore, but it gave me an error saying that the name was already in use in the group. Also, if I generate code now, it won't build. I get several errors that are all related to the typed lists.

I am able to load up the backup that was created before the refresh and the lists are correct. I can generate code from the backup and it compiles fine. Then if I do a refresh from the backup, it messes up the Typed Lists again.

So, it appears that my typed lists were duplicated but I can't see the originals. Any idea what could have caused this. I'm really lost.

Version Info: 3.1 Final - TRIAL Adapter .Net 4.0 C# SQL Server 2008

jg
User
Posts: 25
Joined: 29-Dec-2011
# Posted on: 17-Jan-2012 22:28:34   

I noticed in the Log when I do the refresh I get a message for all the affected Typed Lists that look like this: Typed List 'Contact' has been renamed to 'Contact_' because its name was already in use by another element in its group.

There is a table called Contact as well. Would that be affecting this? We never had any problems with having a table and a typed list with the same name with LLBLGen 2.6. Is this a new requirement?

jg
User
Posts: 25
Joined: 29-Dec-2011
# Posted on: 17-Jan-2012 22:39:00   

I tried renaming them all before doing a refresh, and that actually did work. However, now I have hundreds of errors in my code that I will have to work through. They won't be too difficult since find and replace will take care of most, but it is still inconvenient. Is there any way I can get around this and not have to rename my Typed Lists?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 18-Jan-2012 11:29:23   

Sorry about that, but this indeed is a breaking change. Same question was answered here: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=20147

jg
User
Posts: 25
Joined: 29-Dec-2011
# Posted on: 18-Jan-2012 18:11:56   

Dang... Alright I'll work though that.

I didn't see that in the breaking changes list. You might want to update that list.