/// <summary> /// Methode d'extensibilité possible pour les constructeurs par recopie. /// </summary> /// <param name="bean">Source.</param> partial void OnCreated(RuleFilterDefinition bean);
public void UpdateFilter(RuleFilterDefinition ruleFilterDefinition) { Debug.Assert(ruleFilterDefinition.Id != null); BrokerManager.GetBroker <RuleFilterDefinition>().Save(ruleFilterDefinition); }
public void AddFilter(RuleFilterDefinition ruleFilterDefinition) { Debug.Assert(ruleFilterDefinition.Id == null); ruleFilterDefinition.Id = (int)BrokerManager.GetBroker <RuleFilterDefinition>().Save(ruleFilterDefinition); }
public void RemoveFilter(RuleFilterDefinition ruleFilterDefinition) { Debug.Assert(ruleFilterDefinition.Id != null); BrokerManager.GetBroker <RuleFilterDefinition>().Delete(ruleFilterDefinition.Id.Value); }