Esempio n. 1
0
 private InternalDbContext(DbConfiguration dbConfiguration, DbConnection conn, bool hasSelfCreateConnection)
 {
     Driver  = dbConfiguration.Driver;
     Dialect = dbConfiguration.Dialect;
     this.dbConfiguration   = dbConfiguration;
     connection             = conn;
     Operations             = new Dictionary <MemberInfo, List <LambdaExpression> >();
     this.ExpressionBuilder = dbConfiguration.Option.DbExpressionBuilder;
     Log = dbConfiguration.sqlLogger();
     HasSelfCreateConnection = hasSelfCreateConnection;
 }
 public static Expression Include(IDbExpressionBuilder dbExpressionBuilder, InternalDbContext policy, Expression expression)
 {
     return(new RelationshipIncluder(dbExpressionBuilder, policy).Visit(expression));
 }
 private RelationshipIncluder(IDbExpressionBuilder dbExpressionBuilder, InternalDbContext policy)
 {
     this.dbExpressionBuilder = dbExpressionBuilder;
     this.policy = policy;
 }
Esempio n. 4
0
 public static Expression Bind(IDbExpressionBuilder mapper, Expression expression)
 {
     return new RelationshipBinder(mapper).Visit(expression);
 }
Esempio n. 5
0
 private RelationshipBinder(IDbExpressionBuilder expressionBuilder)
 {
     this.expressionBuilder = expressionBuilder;
 }
Esempio n. 6
0
 public static Expression Rewrite(IDbExpressionBuilder mapping, Expression expression)
 {
     return(new ComparisonRewriter(mapping).Visit(expression));
 }
Esempio n. 7
0
 private ComparisonRewriter(IDbExpressionBuilder mapping)
 {
     this.expressionBuilder = mapping;
 }
 private ClientJoinedProjectionRewriter(InternalDbContext dbContext)
 {
     this.policy = dbContext;
     this.dbExpressionBuilder = dbContext.ExpressionBuilder;
 }
Esempio n. 9
0
 private RelationshipBinder(IDbExpressionBuilder expressionBuilder)
 {
     this.expressionBuilder = expressionBuilder;
 }
 public static Expression Rewrite(IDbExpressionBuilder dialect, Expression expression)
 {
     return new SingletonProjectionRewriter(dialect).Visit(expression);
 }
 private SingletonProjectionRewriter(IDbExpressionBuilder dialect)
 {
     this.dialect = dialect;
 }
 public static Expression Rewrite(IDbExpressionBuilder dialect, Expression expression)
 {
     return(new SingletonProjectionRewriter(dialect).Visit(expression));
 }
 private SingletonProjectionRewriter(IDbExpressionBuilder dialect)
 {
     this.dialect = dialect;
 }
Esempio n. 14
0
 private ComparisonRewriter(IDbExpressionBuilder mapping)
 {
     this.expressionBuilder = mapping;
 }
Esempio n. 15
0
 public static Expression Bind(IDbExpressionBuilder mapper, Expression expression)
 {
     return(new RelationshipBinder(mapper).Visit(expression));
 }
Esempio n. 16
0
 public static Expression Rewrite(IDbExpressionBuilder mapping, Expression expression)
 {
     return new ComparisonRewriter(mapping).Visit(expression);
 }
Esempio n. 17
0
 private ClientJoinedProjectionRewriter(InternalDbContext dbContext)
 {
     this.policy = dbContext;
     this.dbExpressionBuilder = dbContext.ExpressionBuilder;
 }