- 增加 IAdo.CommandFluent(sql) 方法执行 SQL 命令;

- 修复 SqlServer SqlBulkCopy IgnoreColumns 无效的 bug;
This commit is contained in:
28810
2020-09-23 22:00:48 +08:00
parent 9b93200237
commit 8a0862d6fe
25 changed files with 225 additions and 44 deletions

View File

@ -61,7 +61,7 @@ namespace FreeSql.Odbc.Dameng
//if (param is string) return string.Concat('N', nparms[a]);
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -73,6 +73,6 @@ namespace FreeSql.Odbc.Dameng
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}

View File

@ -62,7 +62,7 @@ namespace FreeSql.Odbc.Default
return string.Concat("'", param.ToString().Replace("'", "''"), "'");
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -74,6 +74,6 @@ namespace FreeSql.Odbc.Default
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}

View File

@ -61,7 +61,7 @@ namespace FreeSql.Odbc.KingbaseES
return string.Concat("'", param.ToString().Replace("'", "''"), "'");
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -73,6 +73,6 @@ namespace FreeSql.Odbc.KingbaseES
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}

View File

@ -61,7 +61,7 @@ namespace FreeSql.Odbc.MySql
return string.Concat("'", param.ToString().Replace("'", "''").Replace("\\", "\\\\"), "'");
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -73,6 +73,6 @@ namespace FreeSql.Odbc.MySql
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}

View File

@ -61,7 +61,7 @@ namespace FreeSql.Odbc.Oracle
//if (param is string) return string.Concat('N', nparms[a]);
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -73,6 +73,6 @@ namespace FreeSql.Odbc.Oracle
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}

View File

@ -62,7 +62,7 @@ namespace FreeSql.Odbc.PostgreSQL
return string.Concat("'", param.ToString().Replace("'", "''"), "'");
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -74,6 +74,6 @@ namespace FreeSql.Odbc.PostgreSQL
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}

View File

@ -75,7 +75,7 @@ namespace FreeSql.Odbc.SqlServer
return string.Concat("'", param.ToString().Replace("'", "''"), "'");
}
protected override DbCommand CreateCommand()
public override DbCommand CreateCommand()
{
return new OdbcCommand();
}
@ -87,6 +87,6 @@ namespace FreeSql.Odbc.SqlServer
else pool.Return(conn);
}
protected override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
public override DbParameter[] GetDbParamtersByObject(string sql, object obj) => _util.GetDbParamtersByObject(sql, obj);
}
}