private void UnregisterDataAdapter() { dataAdapter.RowUpdating -= new VistaDBRowUpdatingEventHandler(OnRowUpdating); dataAdapter = null; insertCommand = null; updateCommand = null; deleteCommand = null; }
/// <summary> /// Overloaded constructor. /// </summary> public VistaDBCommandBuilder(VistaDBDataAdapter adapter) { VistaDBErrorMsgs.SetErrorFunc(); dataAdapter = null; insertCommand = null; updateCommand = null; deleteCommand = null; RegisterDataAdapter(adapter); }
/// <summary> /// Overloaded constructor. /// </summary> public VistaDBCommandBuilder() { VistaDBErrorMsgs.SetErrorFunc(); //'This call is required by the Component Designer. InitializeComponent(); dataAdapter = null; insertCommand = null; updateCommand = null; deleteCommand = null; }
private void RegisterDataAdapter(VistaDBDataAdapter adapter) { dataAdapter = adapter; dataAdapter.RowUpdating += new VistaDBRowUpdatingEventHandler(OnRowUpdating); RefreshSchema(); }