iVirtualDocket makes a good point. You may not have to use a DataSet.
Take a look at the example here in the EntitySpaces API chm file installed to your start menu.
EntitySpaces.Core->esEntityCollection->Load(esQueryType, String, esParameters)
If you put the method in your AgencyCollection Custom class, it will populate it rather than a DataSet. The QueryType can be StoredProcedure, and instead of raw text, just pass in the name of your SP. The bool returned will be true if at least one record was returned.
If you need a DataSet rather than populating your collection there are a number of overloads for that as well.
EntitySpaces.Core->esEntityCollection->FillDataSet()
It, too, is a protected method that you can use in your Custom class. In either case, you pass in esParameters, and EntitySpaces will handle opening and closing the connection for you.
The Custom Master is set to not over-write files with the same name. But, for regeneration you would only run the Generated Master, unless new tables were added.
David Neal Parsons
www.entityspaces.net