コード例 #1
0
ファイル: InternalDbContext.cs プロジェクト: jaykizhou/elinq
 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;
 }
コード例 #2
0
 public static Expression Include(IDbExpressionBuilder dbExpressionBuilder, InternalDbContext policy, Expression expression)
 {
     return(new RelationshipIncluder(dbExpressionBuilder, policy).Visit(expression));
 }
コード例 #3
0
 private RelationshipIncluder(IDbExpressionBuilder dbExpressionBuilder, InternalDbContext policy)
 {
     this.dbExpressionBuilder = dbExpressionBuilder;
     this.policy = policy;
 }
コード例 #4
0
ファイル: RelationshipBinder.cs プロジェクト: jaykizhou/elinq
 public static Expression Bind(IDbExpressionBuilder mapper, Expression expression)
 {
     return new RelationshipBinder(mapper).Visit(expression);
 }
コード例 #5
0
ファイル: RelationshipBinder.cs プロジェクト: jaykizhou/elinq
 private RelationshipBinder(IDbExpressionBuilder expressionBuilder)
 {
     this.expressionBuilder = expressionBuilder;
 }
コード例 #6
0
 public static Expression Rewrite(IDbExpressionBuilder mapping, Expression expression)
 {
     return(new ComparisonRewriter(mapping).Visit(expression));
 }
コード例 #7
0
 private ComparisonRewriter(IDbExpressionBuilder mapping)
 {
     this.expressionBuilder = mapping;
 }
コード例 #8
0
 private ClientJoinedProjectionRewriter(InternalDbContext dbContext)
 {
     this.policy = dbContext;
     this.dbExpressionBuilder = dbContext.ExpressionBuilder;
 }
コード例 #9
0
 private RelationshipBinder(IDbExpressionBuilder expressionBuilder)
 {
     this.expressionBuilder = expressionBuilder;
 }
コード例 #10
0
 public static Expression Rewrite(IDbExpressionBuilder dialect, Expression expression)
 {
     return new SingletonProjectionRewriter(dialect).Visit(expression);
 }
コード例 #11
0
 private SingletonProjectionRewriter(IDbExpressionBuilder dialect)
 {
     this.dialect = dialect;
 }
コード例 #12
0
 public static Expression Rewrite(IDbExpressionBuilder dialect, Expression expression)
 {
     return(new SingletonProjectionRewriter(dialect).Visit(expression));
 }
コード例 #13
0
 private SingletonProjectionRewriter(IDbExpressionBuilder dialect)
 {
     this.dialect = dialect;
 }
コード例 #14
0
ファイル: ComparisonRewriter.cs プロジェクト: CMONO/elinq
 private ComparisonRewriter(IDbExpressionBuilder mapping)
 {
     this.expressionBuilder = mapping;
 }
コード例 #15
0
 public static Expression Bind(IDbExpressionBuilder mapper, Expression expression)
 {
     return(new RelationshipBinder(mapper).Visit(expression));
 }
コード例 #16
0
ファイル: ComparisonRewriter.cs プロジェクト: CMONO/elinq
 public static Expression Rewrite(IDbExpressionBuilder mapping, Expression expression)
 {
     return new ComparisonRewriter(mapping).Visit(expression);
 }
コード例 #17
0
 private ClientJoinedProjectionRewriter(InternalDbContext dbContext)
 {
     this.policy = dbContext;
     this.dbExpressionBuilder = dbContext.ExpressionBuilder;
 }