Hi, (Using Ver 2, Adapter, VB, SQL Server) & looking for some simple advice.
When maintaining simple lookup tables, I fetch the entire collection into a grid, allow changes then save the entire collection. I want to use the same concept for simple master/detail scenarios where data volumes are low (and there are few columns) by initially fetching the entire collections of master and detail, and saving the collections when finished.
Say I fetch the entire collection of Divisions and the entire collection of Departments.
I use the collection of Divisions as a lookup to present only related Departments, in a grid.
a) I know how to use predicates to filter Departments when fetching from the database, but how do I filter Departments from the DepartmentEntity collection itself (an example would be useful)?
b) Do other developers do it this way, or do you only fetch related Departments and save these Departments back when a different Division is selected?
I think the solution is simple but I can't find it.
TIA