LLBL doesn't forget the removed columns??

Posts   
 
    
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 06-Mar-2006 10:52:04   

Hi,

I'm using the VS2005/VB.net template set and Adapter scenario.

I successfuly generated code from my database, and everything woked fine, until I removed some columns from one of the tables.

After removing, and regenerating the code the removed columns disappeared from the entity's, but the DataAccessAdapter.FetchEnttyCollection method generate an invalid select query, and the removed columns are in the select statement.

The StackTrace:

at SD.LLBLGen.Pro.ORMSupportClasses.RetrievalQuery.Execute(CommandBehavior behavior) at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.ExecuteMultiRowRetrievalQuery(IRetrievalQuery queryToExecute, IEntityFactory2 entityFactory, IEntityCollection2 collectionToFill, IFieldPersistenceInfo[] fieldsPersistenceInfo, Boolean allowDuplicates, IValidator validatorToUse, IEntityFields2 fieldsUsedForQuery) at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, Int32 pageNumber, Int32 pageSize) at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket, IPrefetchPath2 prefetchPath) at BLL.termekManager.GetCollection(Int32 termekCsoportId, Int32 gyartoId, String tipusszam, String leiras) in C:\VB8projectek\Nagyker\BLL

What did I do wrong?

Thanks

Gabor

Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 06-Mar-2006 11:40:51   

Apologize, it was my mistake.

I had to choose the CleanSolution menuitem from the project explorer, and then everything works fine as before.

I don't fully understand the functionality of this menuitem, but seems likely, that if we have to regenerate the code, and not to use the before built dlls, need to choose this item.

Gabor