mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-24 19:52:51 +08:00

- 兼容 GetTableByEntity 有可能因为传入数组类型的错误; - 修复 UnitOfWork 事务创建逻辑 bug; - 增加 FreeSql.DbContext 扩展包; - 调整 UnitOfWork、DbContext 不提交时默认会回滚;
18 lines
370 B
C#
18 lines
370 B
C#
using Microsoft.Extensions.Caching.Distributed;
|
|
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Common;
|
|
using System.Text;
|
|
|
|
namespace FreeSql {
|
|
public class DbContextOptionsBuilder {
|
|
|
|
internal IFreeSql _fsql;
|
|
public DbContextOptionsBuilder UseFreeSql(IFreeSql orm) {
|
|
_fsql = orm;
|
|
return this;
|
|
}
|
|
}
|
|
}
|