/// <summary> /// Get values from dataRow and update persistentObject instance /// </summary> /// <param name="dataRow"></param> public void UpdateObject(DataRow dataRow) { FillObject(dataRow); //RowLoaded(dataRow); AfterLoaded?.Invoke(this, new DataRowChangeEventArgs(dataRow, DataRowAction.Nothing)); }
public virtual DataRow Load() { RowObjectAdapter d = new RowObjectAdapter(this); d.Apply(); exists = d.Load(); FillObject(d.Row); //RowLoaded(d.Row); AfterLoaded?.Invoke(this, new DataRowChangeEventArgs(d.Row, DataRowAction.Nothing)); return(d.Row); }
internal void OnAfterLoaded() { AfterLoaded?.Invoke(this, EventArgs.Empty); }