Im using Subsonic 2.1 (SVN - Revision 442) and VS 2005 VB.NET.
I decided to convert my (work in progress) framework from 2.0.3 to 2.1 and switch to repository pattern in the process.
2.0.3 collections were a snap to bind, but Im having problems getting 2.1 repository collections to bind.
No errors are raised and if I inspect the the collection it has the right data, but after binding to a grid by either bindingsource or directly to the grid's datasource... nothing. I can however bind succesfully to a Collection.ToDataTable. Can anyone provide me with any clues?
While Im on the subject of collections, I would be interested in hearing other's views on something.
Ive seen a couple of discussions in the past on the fact that collections do not persist deletions to the database during a saveall. I stand corrected, but I believe that is a moot point with repository collections as they dont have save methods anyway. Im just wondering what others are doing with regards saving collection data back to the DB. Because of the deletion issue I described above, I built a generic RowsSaver class (thingy) that basically processes each row in a collection and sends the appropriate insert/update/deletes to the database. It works and at the moment I just plan on revising this class in my 2.1 version. But Ive always thought there should be an easier way, its not uncommon for me to overlook the obvious
Ive played with using a data table to do the persisting, but that just generated more headaches and seemed kind of counterproductive. Any thoughts ?
BTW has anybody else found that the search facility in the newlook forums isnt working to good ?