public static RowAction AddInsertAction(Session session, TableBase table, Row row) { RowAction action = new RowAction(session, table, 1, row, null); row.rowAction = action; return(action); }
public static RowAction AddDeleteAction(Session session, TableBase table, Row row, int[] colMap) { RowAction rowAction = row.rowAction; if (rowAction == null) { rowAction = new RowAction(session, table, 2, row, colMap); row.rowAction = rowAction; return(rowAction); } return(rowAction.AddDeleteAction(session, colMap)); }
private RowAction MergeExpiredRefActions() { if (this.UpdatedAction != null) { this.UpdatedAction = this.UpdatedAction.MergeExpiredRefActions(); } if (this.HasCurrentRefAction()) { return(this); } return(this.UpdatedAction); }
public virtual bool IsDeleted(Session session, IPersistentStore store) { RowAction rowAction = ((Row)store.Get(this, false)).rowAction; return((rowAction != null) && !rowAction.CanRead(session, 0)); }