/// <summary> /// this dpo Compares to the Reocrd in the SQL Server /// </summary> public bool Changed(params string[] ignoredColumns) { RowObjectAdapter d = new RowObjectAdapter(this); d.Apply(); bool exists = d.Load(); if (!exists) { return(true); } return(!d.Row.EqualTo(this.Row, ignoredColumns)); }
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); }