- 修复 MySql 枚举表达式 == 解析成数字的 bug;

- 增加 Connection 对象扩展方法,实现像 Dapper 的使用习惯;
This commit is contained in:
28810
2019-04-10 21:19:32 +08:00
parent c3c7539150
commit d1a07dc888
18 changed files with 432 additions and 117 deletions

View File

@@ -22,6 +22,7 @@ namespace FreeSql.Internal.CommonProvider {
protected bool _noneParameter;
protected DbParameter[] _params;
protected DbTransaction _transaction;
protected DbConnection _connection;
public InsertProvider(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression) {
_orm = orm;
@@ -42,6 +43,11 @@ namespace FreeSql.Internal.CommonProvider {
_transaction = transaction;
return this;
}
public IInsert<T1> WithConnection(DbConnection coinnection) {
_connection = coinnection;
return this;
}
public IInsert<T1> NoneParameter() {
_noneParameter = true;
return this;