|
"CreateBuildingTable"
"CreateRoomTable"
These are the two functions that create a table. If you don't define it, you will of course make mistakes!
You can define it as follows:
private System.Data.DataTable CreateBuildingTable ()
{
System.Data.DataTable dtRet = new System.Data.DataTable ("Building");
dtRet.Columns.Add (new System.Data.DataColumn ("BuildingID", System.Type.GetType ("System.Int32"));
// and so on, add the remaining columns
return dtRet;
}
private System.Data.DataTable CreateRoomTable ()
{
System.Data.DataTable dtRet = new System.Data.DataTable ("Building");
dtRet.Columns.Add (new System.Data.DataColumn ("BuildingID", System.Type.GetType ("System.Int32"));
// and so on, add the remaining columns
return dtRet;
} |
|