Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
63c0b56705
  1. BIN
      .vs/SqlSugar/v14/.suo
  2. BIN
      OrmTest/bin/Debug/OrmTest.exe
  3. BIN
      OrmTest/bin/Debug/OrmTest.pdb
  4. BIN
      OrmTest/bin/Debug/SqlSugar.dll
  5. BIN
      OrmTest/bin/Debug/SqlSugar.pdb
  6. BIN
      OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache
  7. BIN
      OrmTest/obj/Debug/OrmTest.exe
  8. BIN
      OrmTest/obj/Debug/OrmTest.pdb
  9. 10
      SqlSugar/ExpressionsToSql/Common/ExpressionResult.cs
  10. 23
      SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs
  11. BIN
      SqlSugar/bin/Debug/SqlSugar.dll
  12. BIN
      SqlSugar/bin/Debug/SqlSugar.pdb
  13. BIN
      SqlSugar/obj/Debug/SqlSugar.dll
  14. BIN
      SqlSugar/obj/Debug/SqlSugar.pdb

BIN
.vs/SqlSugar/v14/.suo

Binary file not shown.

BIN
OrmTest/bin/Debug/OrmTest.exe

Binary file not shown.

BIN
OrmTest/bin/Debug/OrmTest.pdb

Binary file not shown.

BIN
OrmTest/bin/Debug/SqlSugar.dll

Binary file not shown.

BIN
OrmTest/bin/Debug/SqlSugar.pdb

Binary file not shown.

BIN
OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache

Binary file not shown.

BIN
OrmTest/obj/Debug/OrmTest.exe

Binary file not shown.

BIN
OrmTest/obj/Debug/OrmTest.pdb

Binary file not shown.

10
SqlSugar/ExpressionsToSql/Common/ExpressionResult.cs

@ -55,18 +55,18 @@ namespace SqlSugar
return this.Result.ToString(); return this.Result.ToString();
} }
public void Append(string parameter) public void Append(object parameter)
{ {
switch (this._ResolveExpressType) switch (this._ResolveExpressType)
{ {
case ResolveExpressType.WhereSingle:
break;
case ResolveExpressType.WhereMultiple:
break;
case ResolveExpressType.SelectSingle: case ResolveExpressType.SelectSingle:
case ResolveExpressType.SelectMultiple: case ResolveExpressType.SelectMultiple:
parameter = parameter + ","; parameter = parameter + ",";
break; break;
case ResolveExpressType.WhereSingle:
break;
case ResolveExpressType.WhereMultiple:
break;
case ResolveExpressType.FieldSingle: case ResolveExpressType.FieldSingle:
break; break;
case ResolveExpressType.FieldMultiple: case ResolveExpressType.FieldMultiple:

23
SqlSugar/ExpressionsToSql/ResolveItems/MemberInitExpressionResolve.cs

@ -53,27 +53,10 @@ namespace SqlSugar
parameter.Context.Result.Append(parameterName); parameter.Context.Result.Append(parameterName);
this.Context.Parameters.Add(new SugarParameter(parameterName, parameter.TempDate)); this.Context.Parameters.Add(new SugarParameter(parameterName, parameter.TempDate));
} }
else else if(item is MemberExpression)
{ {
base.Expression= memberAssignment.Expression;
var memberExpression = (MemberExpression)memberAssignment.Expression; base.Start();
if (memberExpression.Expression.NodeType.IsIn(ExpressionType.Parameter))
{
var fieldNme = (memberExpression).Member.Name;
if (isSingle)
{
parameter.Context.Result.Append(fieldNme);
}
else
{
var shortName = memberExpression.Expression.ToString();
parameter.Context.Result.Append(shortName + "." + fieldNme);
}
}
else
{
Check.ThrowNotSupportedException(memberExpression.Expression.NodeType.ToString());
}
} }
} }
} }

BIN
SqlSugar/bin/Debug/SqlSugar.dll

Binary file not shown.

BIN
SqlSugar/bin/Debug/SqlSugar.pdb

Binary file not shown.

BIN
SqlSugar/obj/Debug/SqlSugar.dll

Binary file not shown.

BIN
SqlSugar/obj/Debug/SqlSugar.pdb

Binary file not shown.
Loading…
Cancel
Save