mdlUtilities¶
Supplies generic collection-copy helpers.
Purpose¶
- Copy LINQ results into typed SAIF business collections.
- Support filtered collection views without repeated loops.
Context¶
- Namespace:
SAIF.Business.Menu - Assembly/package:
SAIF.Business.Menu.dll
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| AddToList | Public Function AddToList(Of T As clsBusinessBase, Col As clsBusinessCollection(Of T)) (ByVal inTargetList As Col, ByVal inSourceList As IEnumerable(Of T)) As Col |
Iterates inSourceList (typically the output of a LINQ Where/filter expression over an already-loaded typed collection) and adds each item into inTargetList via the target collection's Add, then returns inTargetList. Used to build filtered views such as clsMenuAuthorizedItemCollection.Favorites, ApplicationItems, and AppItemsByCategory without hand-written loops in each caller. |
Behavioral notes¶
- Contains no persistence or authorization logic; it only copies already-loaded, already-filtered items into a target SAIF collection.
Constraints and usage notes¶
- Generic over any
clsBusinessBase-derived item typeTand its matchingclsBusinessCollection(Of T), so it can be reused by every entity/collection pair in this library.
Sources¶
SAIF.Business.Menu\mdlUtilities.vb