mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 .Net Framework 4.0 的支持,出于环境考虑 .Net Framework 4.0 不支持异步方法;
- 增加 IFreeSql.Insert<T>(IEnumerable<T1> source) 方法;
This commit is contained in:
@ -8,11 +8,12 @@ using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#if net40
|
||||
#else
|
||||
namespace FreeSql
|
||||
{
|
||||
partial class DbSet<TEntity>
|
||||
{
|
||||
|
||||
Task DbContextExecCommandAsync()
|
||||
{
|
||||
_dicUpdateTimes.Clear();
|
||||
@ -409,3 +410,4 @@ namespace FreeSql
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
#endif
|
@ -169,11 +169,11 @@ namespace FreeSql
|
||||
var lazyFieldValue = (bool)lazyField.GetValue(item);
|
||||
if (lazyFieldValue == false) continue;
|
||||
}
|
||||
propVal = prop.Value.GetValue(item);
|
||||
propVal = prop.Value.GetValue(item, null);
|
||||
}
|
||||
else
|
||||
{
|
||||
propVal = prop.Value.GetValue(item);
|
||||
propVal = prop.Value.GetValue(item, null);
|
||||
if (propVal == null) continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user