Beispiel #1
0
 public ConfiguredMatcherDataSourceFactory(
     MappingConfigInfo configInfo,
     LinqExp.Expression <Func <TargetMemberSelector, bool> > targetMemberMatcher,
     ConfiguredLambdaInfo dataSourceLambda,
     QualifiedMember toTargetMember)
     : this(
         configInfo,
         targetMemberMatcher.ToDlrExpression(),
         dataSourceLambda,
         toTargetMember)
 {
 }
Beispiel #2
0
 public List <T> GetList <T>(LinqExp.Expression <Func <T, bool> > expression) where T : class
 {
     return(Session.QueryOver <T>().Where(expression).List <T>() as List <T>);
 }
Beispiel #3
0
 public T SingleOrDefault <T>(LinqExp.Expression <Func <T, bool> > expression) where T : class
 {
     return(Session.QueryOver <T>().Where(expression).SingleOrDefault());
 }
 public ConfiguredMemberFilter(
     MappingConfigInfo configInfo,
     LinqExp.Expression <Func <TargetMemberSelector, bool> > memberFilterLambda)
     : this(configInfo, memberFilterLambda.ToDlrExpression())
 {
 }
 public static Expression <TDelegate> ToDlrExpression <TDelegate>(this LinqExp.Expression <TDelegate> linqLambda)
 => (Expression <TDelegate>)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 protected static LambdaExpression CreateLambda <TArg1, TArg2, TArg3, TReturn>(LinqExp.Expression <Func <TArg1, TArg2, TArg3, TReturn> > linqLambda)
 => (LambdaExpression)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 internal static LambdaExpression CreateLambda <TReturn>(LinqExp.Expression <Func <TReturn> > linqLambda)
 => (LambdaExpression)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 protected static LambdaExpression CreateLambda <TArg1, TArg2>(LinqExp.Expression <Action <TArg1, TArg2> > linqLambda)
 => (LambdaExpression)LinqExpressionToDlrExpressionConverter.Convert(linqLambda);
 public static ConfiguredSourceValueFilter Create(
     MappingConfigInfo configInfo,
     LinqExp.Expression <Func <SourceValueFilterSpecifier, bool> > valuesFilter)
 {
     return(Create(configInfo, valuesFilter.ToDlrExpression()));
 }
 protected static LambdaExpression CreateLambda(LinqExp.Expression <Action> linqLambda)
 => LinqExpressionToDlrExpressionConverter.Convert(linqLambda);