Please forgive the potentially easy question, as I am new to LLBLGen. I am trying to clone/copy a collection.
Looking in the reference manual I see that my best option is the CopyTo method. However, it does seem to be working as I thought it might. The error I receive is the following:
Value of Type Csi.CsiBusinessBase.CollectionClasses.MenuRolesCollection cannot be converted to a 1-dimensional array of SD.LLBLGen.Pro.ORMSuportClasses.IEntity.
My code basically looks like the following:
Private _MenuRoles As CollectionClasses.MenuRolesCollection = New CollectionClasses.MenuRolesCollection
Private _NewMenuRoles As CollectionClasses.MenuRolesCollection = New CollectionClasses.MenuRolesCollection
Dim filter As IPredicateExpression = New PredicateExpression
filter.Add(PredicateFactory.CompareValue(MenuRolesFieldIndex.RoleId, ComparisonOperator.Equal, RoleID))
_MenuRoles.GetMulti(filter)
_MenuRoles.CopyTo(_NewMenuRoles, 0) <-- Error is here..
Any thoughts and feedback is greatly appreciated.
Scott