|
@@ -189,6 +189,12 @@ namespace InABox.Core
|
|
|
//String colname = CoreUtils.GetFullPropertyName(expression, ".");
|
|
|
Set(colname, value);
|
|
|
}
|
|
|
+ public void Update<TSource, TType>(Expression<Func<TSource, TType>> expression, Func<TType, TType> update)
|
|
|
+ {
|
|
|
+ var colname = GetColName(expression);
|
|
|
+ //String colname = CoreUtils.GetFullPropertyName(expression, ".");
|
|
|
+ Set(colname, update(Get<TType>(colname)));
|
|
|
+ }
|
|
|
|
|
|
public void Set<T>(int col, T value)
|
|
|
{
|