Hi,
I'm using the latest build (Nov 06) of Genpro, v 2.0.
I'm using the adapter scenario, also using hierarchies in my objects (one-to-one relationships on some of my objects which is then used for hierarchy when constructing "Target-per-Entity" Hierarchies.
Now when I save the object using the adapter, I get this error:
**
Error: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.**
Stack Trace:
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at SD.LLBLGen.Pro.ORMSupportClasses.EntityFieldPersistenceInfoList..ctor(IEntityFieldCore[] fields, IFieldPersistenceInfo[] fieldsPersistenceInfo)
at SD.LLBLGen.Pro.ORMSupportClasses.DynamicQueryEngineBase.CreateInsertDQ(IEntityFieldCore[] fields, IFieldPersistenceInfo[] fieldsPersistenceInfo, IDbConnection connectionToUse)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.CreateInsertDQ(IEntity2 entityToSave, IFieldPersistenceInfo[] persistenceInfoObjects)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.PersistQueue(List`1 queueToPersist, Boolean insertActions)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.SaveEntity(IEntity2 entityToSave, Boolean refetchAfterSave, IPredicateExpression updateRestriction, Boolean recurse)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.SaveEntity(IEntity2 entityToSave)
at EnterpriseWorx.SmartClient.LLBLGenPro.DataAccess.DataSaveCommand`1.Save(Boolean fetchAfterSave) in
Please help - any ideas???
Thanks in advance