Exemplo n.º 1
0
 public ConfiguredMatcherDataSourceFactory(
     MappingConfigInfo configInfo,
     LinqExp.Expression <Func <TargetMemberSelector, bool> > targetMemberMatcher,
     ConfiguredLambdaInfo dataSourceLambda,
     QualifiedMember toTargetMember)
     : this(
         configInfo,
         targetMemberMatcher.ToDlrExpression(),
         dataSourceLambda,
         toTargetMember)
 {
 }
Exemplo n.º 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>);
 }
Exemplo n.º 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())
 {
 }
Exemplo n.º 5
0
 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()));
 }
Exemplo n.º 10
0
 protected static LambdaExpression CreateLambda(LinqExp.Expression <Action> linqLambda)
 => LinqExpressionToDlrExpressionConverter.Convert(linqLambda);