public EntityOperationSelector(IDictionary <string, IChoiceRule <TEntity, TOperation> > rules, IDictionary <EntityType, TOperation> defaultOperation, Func <TEntity, EntityType> getEntityType) { _evaluator = new ChoiceRuleEvaluator <TEntity, TOperation>(rules); _defaultOperation = defaultOperation; _getEntityType = getEntityType; }
public DefaultOperationSelector(IDictionary <string, IChoiceRule <TEntity, TOperation> > rules, TOperation defaultOperation) { _evaluator = new ChoiceRuleEvaluator <TEntity, TOperation>(rules); _defaultOperation = defaultOperation; }