Removing fields from a table in the database - remenants remain in code.

Posts   
 
    
JMitchell avatar
JMitchell
User
Posts: 128
Joined: 01-Sep-2006
# Posted on: 04-Dec-2007 12:00:20   

I removed a couple of fields from a table in my database. I refreshed the catalog and regenerated my code. It now has errors in that the entity defaults for those fields are still in the EntityBase file.

Is this a bug or is this done by design?

LLBLGen Pro Version 2.5 Finak (October 25th, 2007) VB.NET .NET 2.0 Self Servicing

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 04-Dec-2007 16:43:45   

Mmm disappointed

I suppose that when you refreshed the the catalog at the designer the fields were removed, weren't they?

What template set are you generating (SS-General or SS-Two Classes)?

JMitchell avatar
JMitchell
User
Posts: 128
Joined: 01-Sep-2006
# Posted on: 04-Dec-2007 16:57:45   

Yes, everything disappeared as I expected apart from the defaults.

I appear to be using the two classes template set although before I looked I thought I was using General...

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 04-Dec-2007 17:04:49   

JMitchell wrote:

Yes, everything disappeared as I expected apart from the defaults.

I appear to be using the two classes template set although before I looked I thought I was using General...

That confusion could be the problem. For example if you firstly generated TwoClasses and then General, a bunch of EntityBase classes would remain at your project causing the problem.

Please do a small test: generate your desire template set in a empty folder, then remove some fields from a table, refresh catalog and generate again (take care of selection the correct template set) and see if the problem exists.