예제 #1
0
 /// <summary>
 /// 在上下文中添加待执行的SQL语句
 /// </summary>
 /// <param name="sqlBuilder"></param>
 /// <param name="format"></param>
 /// <param name="args"></param>
 public void AppendSqlInContext(SqlBuilderBase sqlBuilder, string format, params object[] args)
 {
     AppendSqlInContext(sqlBuilder, false, format, args);
 }
예제 #2
0
 /// <summary>
 /// 在上下文中添加待执行的SQL语句,自动添加语句分隔符
 /// </summary>
 /// <param name="sqlBuilder"></param>
 /// <param name="format"></param>
 /// <param name="args"></param>
 public void AppendSqlWithSperatorInContext(SqlBuilderBase sqlBuilder, string format, params object[] args)
 {
     AppendSqlInContext(sqlBuilder, true, format, args);
 }
예제 #3
0
        public void QueryByIsIn <T>(Expression <Func <T, object> > expression, SqlBuilderBase sqlQuery)
        {
            var fieldName = GetColumnName(expression);

            Builder.QueryByIsIn(GetTableName <T>(), fieldName, sqlQuery);
        }
예제 #4
0
 public EntityOperator()
 {
     _provider = ProviderFactory.CreateProvider();
     _sqlExecutor = _provider.CreateSqlExecutor();
     _sqlBuilder = _provider.CreateSqlBuilderFactory().CreateSqlBuilder();
 }
예제 #5
0
 public EntityOperator(ProviderBase provider)
 {
     _provider    = provider;
     _sqlExecutor = _provider.CreateSqlExecutor();
     _sqlBuilder  = _provider.CreateSqlBuilderFactory().CreateSqlBuilder();
 }
예제 #6
0
 public EntityOperator(ProviderBase provider)
 {
     _provider = provider;
     _sqlExecutor = _provider.CreateSqlExecutor();
     _sqlBuilder = _provider.CreateSqlBuilderFactory().CreateSqlBuilder();
 }
예제 #7
0
 public EntityOperator()
 {
     _provider    = ProviderFactory.CreateProvider();
     _sqlExecutor = _provider.CreateSqlExecutor();
     _sqlBuilder  = _provider.CreateSqlBuilderFactory().CreateSqlBuilder();
 }