ModelContext .Select() BUG

This commit is contained in:
sunkaixuan
2018-01-05 16:15:46 +08:00
parent 16492ea849
commit 9c5c45fc1b
2 changed files with 8 additions and 0 deletions

View File

@@ -160,6 +160,12 @@ namespace SqlSugar
{
Dictionary<string, object> result = new Dictionary<string, object>();
var type = item.PropertyType;
if (UtilConstants.SugarType == type) {
return result;
}
if (type.FullName.IsCollectionsList()) {
return null;
}
var classProperties = type.GetProperties().ToList();
foreach (var prop in classProperties)
{

View File

@@ -37,5 +37,7 @@ namespace SqlSugar
internal static Type DicSo = typeof(KeyValuePair<string, object>);
internal static Type DicArraySS = typeof(Dictionary<string, string>);
internal static Type DicArraySO = typeof(Dictionary<string, object>);
public static Type SugarType = typeof(SqlSugarClient);
}
}