Query Forms data
Now I think we have enough to be useful.
Here are three simple methods which call the GetDataSet() I defined earlier:
public System.Data.DataSet GetSchema()
{
return GetDataSet(true, false, "");
}
public System.Data.DataSet Query(string queryString)
{
return GetDataSet(false, false, queryString);
}
public System.Data.DataSet Query(string queryString, bool includeAttachments)
{
return GetDataSet(false, includeAttachments, queryString);
}
Now you can read all records in the tool, or some subset, and get a DataSet; then (for example) bind that DataSet into a DataGridView. This is pretty much what the FormsExplorer sample does.
But some applications will want to create and update records, and use attachments. Up next.