예제 #1
0
 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;
 }
예제 #2
0
 public DefaultOperationSelector(IDictionary <string, IChoiceRule <TEntity, TOperation> > rules, TOperation defaultOperation)
 {
     _evaluator        = new ChoiceRuleEvaluator <TEntity, TOperation>(rules);
     _defaultOperation = defaultOperation;
 }