/// <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); }
/// <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); }
public void QueryByIsIn <T>(Expression <Func <T, object> > expression, SqlBuilderBase sqlQuery) { var fieldName = GetColumnName(expression); Builder.QueryByIsIn(GetTableName <T>(), fieldName, sqlQuery); }
public EntityOperator() { _provider = ProviderFactory.CreateProvider(); _sqlExecutor = _provider.CreateSqlExecutor(); _sqlBuilder = _provider.CreateSqlBuilderFactory().CreateSqlBuilder(); }
public EntityOperator(ProviderBase provider) { _provider = provider; _sqlExecutor = _provider.CreateSqlExecutor(); _sqlBuilder = _provider.CreateSqlBuilderFactory().CreateSqlBuilder(); }