mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 修复 3.2.665-3.2.680 子查询的特殊 bug;
This commit is contained in:
@ -22,8 +22,12 @@ public static partial class FreeSqlGlobalExtensions
|
||||
{
|
||||
#if net40
|
||||
#else
|
||||
static readonly Lazy<PropertyInfo> _TaskReflectionResultPropertyLazy = new Lazy<PropertyInfo>(() => typeof(Task).GetProperty("Result"));
|
||||
internal static object GetTaskReflectionResult(this Task task) => _TaskReflectionResultPropertyLazy.Value.GetValue(task, new object[0]);
|
||||
internal static object GetTaskReflectionResult(this Task task)
|
||||
{
|
||||
var propResult = task?.GetType().GetProperty("Result");
|
||||
if (propResult != null) return propResult.GetValue(task, new object[0]);
|
||||
return null;
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Type 对象扩展方法
|
||||
|
Reference in New Issue
Block a user