Problem with re-generating projects in LLBLGen

Posts   
 
    
dion avatar
dion
User
Posts: 11
Joined: 23-Apr-2004
# Posted on: 19-Nov-2004 21:32:02   

When I regenerate my SelfServicing VS.NET project, my project file get altered. This is exactly what I want, because after I've added new tables to my database, I want to regenerate my project using the same ProjectGuid (which VS.NET uses to keep reference to each project). In old versions of LLBLGen, projects were not overwritten by default (because parameter failWhenExistent was false), but I've noticed the new TaskPerformers allow overwriting of most files by default (which is a good choice).

But now my problem: When I add new Entity in the LLBLGen designer, I can see them being added to the updated VS.NET project file. Great. But now when I delete an Entity, it's still in my generated VS.NET project.

Is this a defect? Or is this by design?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 20-Nov-2004 10:44:59   

That's by design for now, as there is no tracking of what has been deleted since the last generation of code. So if you remove an entity and save hte project and on another day you load the project and you generate code, by design it doesn't remove files which are there but not generated in that run, as those files can be your own files you've added to the project.

Frans Bouma | Lead developer LLBLGen Pro
dion avatar
dion
User
Posts: 11
Joined: 23-Apr-2004
# Posted on: 21-Nov-2004 21:25:30   

Ok, I can see your point of view. But when adding my own files, I think it's better to add them in a seperate project (so it's clear what is generated and what not).

So what do you advice when I want to remove a previously generated TypedViews or Entities? Maybe the best way is to manually remove all files from the generated project in VS.NET, and after that regenerate the files using LLBLGen again.

Btw: good thing that LLBLGen allows you to define extra relations (using the designer). If I only had this feature 7 month ago simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 22-Nov-2004 10:06:29   

dion wrote:

Ok, I can see your point of view. But when adding my own files, I think it's better to add them in a seperate project (so it's clear what is generated and what not).

So what do you advice when I want to remove a previously generated TypedViews or Entities? Maybe the best way is to manually remove all files from the generated project in VS.NET, and after that regenerate the files using LLBLGen again.

THat's one way to solve it. Overwriting is another, but then you indeed get a different GUID.

Frans Bouma | Lead developer LLBLGen Pro