This commit is contained in:
sunkaixuan
2017-07-09 00:16:59 +08:00
parent ae90fb7618
commit 2636fa3a1e

View File

@@ -120,6 +120,7 @@ namespace SqlSugar
{
object reval = null;
FieldInfo field = (FieldInfo)memberExpr.Member;
Check.Exception(field.IsPrivate,string.Format(" Field \"{0}\" can't be private ",field.Name));
reval = field.GetValue(memberExpr.Member);
if (reval != null && reval.GetType().IsClass() && reval.GetType() != ExpressionConst.StringType)
{
@@ -136,7 +137,7 @@ namespace SqlSugar
}
if (fieInfo == null && proInfo == null)
{
Check.Exception(field.IsPrivate, string.Format(" Field \"{0}\" can't be private ", field.Name));
}
}
return reval;
@@ -162,7 +163,7 @@ namespace SqlSugar
}
if (fieInfo == null && proInfo == null)
{
Check.Exception(true, string.Format(" Property \"{0}\" can't be private ", pro.Name));
}
}
return reval;