Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 internal void OnAfterLoaded()
 {
     AfterLoaded?.Invoke(this, EventArgs.Empty);
 }