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