Exemplo n.º 1
0
        public override int Update(string tableName, IDictionary <string, object> newValuesDict, IDictionary <string, object> originalValuesDict)
        {
            SimpleExpression criteria = CreateCriteriaFromOriginalValues(tableName, newValuesDict, originalValuesDict);
            var changedValuesDict     = CreateChangedValuesDict(newValuesDict, originalValuesDict);

            return(_adapter.Update(tableName, changedValuesDict, criteria));
        }
Exemplo n.º 2
0
 /// <summary>
 ///  Updates the specified "table" according to specified criteria.
 ///  </summary><param name="tableName">Name of the table.</param><param name="data">The new values.</param><param name="criteria">The expression to use as criteria for the update operation.</param><returns>The number of records affected by the update operation.</returns>
 public override int Update(string tableName, IDictionary <string, object> data, SimpleExpression criteria)
 {
     return(_adapter.Update(tableName, data, criteria));
 }