The runtime library version is 2.5.7.1214
Within the form, here's the save:
Try
frmMain.LookupTableManagerService.SaveAllCSecDevClass(CType(BindingSource1.DataSource(), EntityCollection(Of EntityClasses.CSecDevClassEntity)), True)
Catch ex As ORMException
MessageBox.Show("Unexpected error - Unable to Save data", _
AppLegend & modLegend, MessageBoxButtons.OK, MessageBoxIcon.Error)
Return False
Exit Function
End Try
The Interface:
Public Interface ILookupTableManager
Sub SaveAllCSecDevClass(ByVal allRows As EntityCollection(Of CSecDevClassEntity), ByVal rFetch As Boolean)
Bit of the concrete class:
<Serializable()> _
Public Class LookupTableManager
Inherits MarshalByRefObject
Implements ILookupTableManager
Public Sub SaveAllCSecDevClass(ByVal allRows As EntityCollection(Of CSecDevClassEntity), ByVal rFetch As Boolean) Implements Interfaces.ILookupTableManager.SaveAllCSecDevClass
Dim adapter As New DataAccessAdapter()
Try
adapter.SaveEntityCollection(allRows, rFetch, False)
Finally
adapter.Dispose()
End Try
End Sub
I can't help wondering if the way I get a reference to LookupTableManager might not be a problem!
Thanks