| Milos How-To |
| VB.NET to Make the Business Object Aware of the New Table |
Public Class ItemBusinessObject Inherits EPS.Business.BusinessObjects.BusinessObject ' Previously existing code goes here... ' This method has changed from before!!! Public Overrides Function SaveSecondaryTables(ByVal parentPk As Guid, ByVal existingDataSet As DataSet) As Boolean Return Me.SaveTable(existingDataSet.Tables("productimages"), "image_pk") End Function ' This method has changed from before!!! Public Overrides Sub AddNewSecondaryTables(ByVal parentPk As Guid, ByVal existingDataSet As DataSet) Me.NewSecondaryEntity("productimages", existingDataSet) End Function Protected Overrides Sub LoadSecondaryTables(ByVal parentPk As Guid, ByVal existingDataSet As DataSet) Me.QueryMultipleRecordsByKey("productimages","*","product_fk",parentPk,existingDataSet) End Sub End Class
Back to Making the Business Object Aware of the New Table