Source/NFX/DataAccess/CRUD/RowsetBase.cs
/// <summary>
/// Tries to find a row for update and if found, updates it and returns true,
///  otherwise inserts the row (if schemas match) and returns false. Optionally pass updateWhere condition
///   that may check whether update needs to be performed
/// </summary>
Tries to find a row for update and if found, updates it and returns true,
otherwise inserts the row (if schemas match) and returns false. Optionally pass updateWhere condition
that may check whether update needs to be performed
Tries to find a row for update and if found updates it and returns true otherwise inserts the row ( if schemas match ) and returns false . Optionally pass updateWhere condition that may check whether update needs to be performed
public UpdateResult Upsert(Row row, Func<Row, bool> updateWhere = null, Func<Row, Row, Row> rowUpgrade = null)
            {
               Check(row);
               var update = DoUpsert(row, updateWhere, rowUpgrade);
               if (m_Changes!=null) m_Changes.Add( new RowChange(RowChangeType.Upsert, row, null) );
               return update;
            }
public UpdateResult Upsert ( Row row , Func < Row , bool > updateWhere = null , Func < Row , Row , Row > rowUpgrade = null ) { Check ( row ) ; var update = DoUpsert ( row , updateWhere , rowUpgrade ) ; if ( m_Changes != null ) m_Changes . Add ( new RowChange ( RowChangeType . Upsert , row , null ) ) ; return update ; }
Tries to find a row for update and if found, updates it and returns true,
otherwise inserts the row (if schemas match) and returns false.
Tries to find a row for update and if found updates it and returns true otherwise inserts the row ( if schemas match ) and returns false .
row
Row
updateWhere
Func<Row, bool>
rowUpgrade
Func<Row, Row, Row>