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; }
public static Expression Bind(IDbExpressionBuilder mapper, Expression expression) { return new RelationshipBinder(mapper).Visit(expression); }
private RelationshipBinder(IDbExpressionBuilder expressionBuilder) { this.expressionBuilder = expressionBuilder; }
public static Expression Rewrite(IDbExpressionBuilder mapping, Expression expression) { return(new ComparisonRewriter(mapping).Visit(expression)); }
private ComparisonRewriter(IDbExpressionBuilder mapping) { this.expressionBuilder = mapping; }
private ClientJoinedProjectionRewriter(InternalDbContext dbContext) { this.policy = dbContext; this.dbExpressionBuilder = dbContext.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)); }
public static Expression Bind(IDbExpressionBuilder mapper, Expression expression) { return(new RelationshipBinder(mapper).Visit(expression)); }
public static Expression Rewrite(IDbExpressionBuilder mapping, Expression expression) { return new ComparisonRewriter(mapping).Visit(expression); }