| Milos How-To |
| C# - Using Non-Guid Primary Keys of Child Object Collections |
public class EmployeeBO : BusinessObject { // Other class code goes here... protected override void LoadSecondaryTables(int parentPk, System.Data.DataSet existingDataSet) { this.QueryMultipleRecordsByKey("employeeterritories","*","employeeid",parentPk,existingDataSet) } protected override bool SaveSecondaryTables(int parentPk, DataSet existingDataSet) { return this.SaveTable(existingDataSet.Tables["employeeterritories"],"terrid"); } protected override void AddNewSecondaryTables(int parentPk, DataSet existingDataSet) { this.NewSecondaryEntity("employeeterritories",existingDataSet); } }
Back to Using Non-Guid Primary Keys