Пример #1
0
 public static bool IsFor(
     this DbModificationClause clause,
     string property)
 {
     return(clause.HasPropertyExpression() &&
            clause.Property().Property.Name == property);
 }
Пример #2
0
 public static DbModificationClause UpdateIfMatch(
     this DbModificationClause clause,
     string property,
     DbExpression value)
 {
     return(clause.IsFor(property)
         ? DbExpressionBuilder.SetClause(clause.Property(), value)
         : clause);
 }