Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Lazy Loading data INTO a dataset?

Is there an established pattern on how one should implement Lazy Loading of DataRows or even dataTables in a DataSet object?  I've created a child class of DataSet, but unless I want to create my own custom classes that inherit from DataTableCollection, and the Row/Column collections, I don't see that sort of approach working.  Thats why I thought perhaps MS provided a nice way of doing it, and I just wasn't aware. 

Vincent Marquez
Friday, June 20, 2003

Do you want to do lazy loading on a per-table basis?  I.e., you have a dataset that has, say, 5 datatables, and you want to load each datatable the first time it's requested?

Or do you want to load child collections on a per-row basis.  For example, load all of your customers, but then only load the contacts for each customer as that particular customer's contacts list is requested?

Saturday, June 28, 2003

*  Recent Topics

*  Fog Creek Home