Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
1766614f74
  1. BIN
      .vs/SqlSugar/v14/.suo
  2. 1
      OrmTest/Program.cs
  3. BIN
      OrmTest/bin/Debug/OrmTest.exe
  4. BIN
      OrmTest/bin/Debug/OrmTest.pdb
  5. BIN
      OrmTest/bin/Debug/SqlSugar.dll
  6. BIN
      OrmTest/bin/Debug/SqlSugar.pdb
  7. BIN
      OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache
  8. BIN
      OrmTest/obj/Debug/OrmTest.exe
  9. BIN
      OrmTest/obj/Debug/OrmTest.pdb
  10. 14
      SqlSugar/ExpressionsToSql/ResolveItems/LambdaExpressionResolve.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.

1
OrmTest/Program.cs

@ -18,6 +18,7 @@ namespace OrmTest
{
string id = "1";
Expression<Func<Student, bool>> exp = it => it.Name!=id;
// Expression<Func<Student, object>> exp = it => it.Name;
ExpressionContext expContext = new ExpressionContext(exp, ResolveExpressType.Single);
// var x = expContext.GetFiledName();
var xx = expContext.ToSqlString();

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.

14
SqlSugar/ExpressionsToSql/ResolveItems/LambdaExpressionResolve.cs

@ -9,18 +9,10 @@ namespace SqlSugar
{
public LambdaExpressionResolve(ExpressionParameter parameter) : base(parameter)
{
LambdaExpression lambda =base.Expression as LambdaExpression;
LambdaExpression lambda = base.Expression as LambdaExpression;
var expression = lambda.Body;
if (expression.NodeType == ExpressionType.MemberAccess)
{
string appendString = "(" +((MemberExpression)expression).Member.Name + "=1)";
base.Context.SqlWhere.Append(appendString);
}
else
{
base.Expression = expression;
base.Start();
}
base.Expression = expression;
base.Start();
}
}
}

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