protected override void ConfigureQuery(CustomQueryConfiguration config)
        {
            base.ConfigureQuery(config);

            config.ModelBuilderType = IsComplexDataModel(typeof(TResult)) ?
                                      typeof(DefaultModelBuilder <TResult>) :
                                      typeof(ScalarValueBuilder <TResult>);
        }
Example #2
0
 protected virtual void ConfigureQuery(CustomQueryConfiguration config)
 {
     // default behavior is to handle parameters
     // by inserting them into SqlCommand objects
     config.UseDefaultParameterHandling = true;
 }