mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
ModelContext .Select() BUG
This commit is contained in:
@@ -160,6 +160,12 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
Dictionary<string, object> result = new Dictionary<string, object>();
|
Dictionary<string, object> result = new Dictionary<string, object>();
|
||||||
var type = item.PropertyType;
|
var type = item.PropertyType;
|
||||||
|
if (UtilConstants.SugarType == type) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
if (type.FullName.IsCollectionsList()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
var classProperties = type.GetProperties().ToList();
|
var classProperties = type.GetProperties().ToList();
|
||||||
foreach (var prop in classProperties)
|
foreach (var prop in classProperties)
|
||||||
{
|
{
|
||||||
|
@@ -37,5 +37,7 @@ namespace SqlSugar
|
|||||||
internal static Type DicSo = typeof(KeyValuePair<string, object>);
|
internal static Type DicSo = typeof(KeyValuePair<string, object>);
|
||||||
internal static Type DicArraySS = typeof(Dictionary<string, string>);
|
internal static Type DicArraySS = typeof(Dictionary<string, string>);
|
||||||
internal static Type DicArraySO = typeof(Dictionary<string, object>);
|
internal static Type DicArraySO = typeof(Dictionary<string, object>);
|
||||||
|
|
||||||
|
public static Type SugarType = typeof(SqlSugarClient);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user