mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-21 17:05:47 +08:00
- 修复 MySql 枚举表达式 == 解析成数字的 bug;
- 增加 Connection 对象扩展方法,实现像 Dapper 的使用习惯;
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user