public void UsingDefinition <T>() where T : SingleStreamAggregation <MyAggregate>, new() { _projection = new T(); var rules = theStore.Options.CreateGenerationRules(); rules.TypeLoadMode = TypeLoadMode.Dynamic; _projection.Compile(theStore.Options, rules); }