| Milos How-To |
| C# Code to Make the Business Object Aware of the New Table |
public class EmployeeBO : ItemBusinessObject { // Previously existing code goes here... // This method has changed from before!!! protected override bool SaveSecondaryTables(guid parentPk, DataSet existingDataSet) { return this.SaveTable(existingDataSet.Tables["employeeterritories"],"terrid"); } // This method has changed from before!!! protected override void AddNewSecondaryTables(guid parentPk, DataSet existingDataSet) { this.NewSecondaryEntity("employeeterritories",existingDataSet); } protected override void LoadSecondaryTables(guid parentPk, System.Data.DataSet existingDataSet) { this.QueryMultipleRecordsByKey("employeeterritories","*","employeeid",parentPk,existingDataSet) } }
Back to Making the Business Object Aware of the New Table