public override RuleAction Create() { SqlRuleAction sqlRuleAction = new SqlRuleAction(this.SqlExpression); foreach (KeyValuePair <string, object> parameter in this.Parameters) { sqlRuleAction.Parameters[parameter.Key] = PropertyReference.GetValue <object>(parameter.Value); } return(sqlRuleAction); }
internal override void UpdateForVersion(ApiVersion version, RuleAction existingAction = null) { PropertyDictionary propertyDictionaries; SqlRuleAction sqlRuleAction = existingAction as SqlRuleAction; base.UpdateForVersion(version, existingAction); if (version < ApiVersion.Two) { if (sqlRuleAction == null) { propertyDictionaries = null; } else { propertyDictionaries = sqlRuleAction.parameters; } this.parameters = propertyDictionaries; } }