Skip to content

Commit

Permalink
Update Core
Browse files Browse the repository at this point in the history
  • Loading branch information
DotNetNext committed Jul 3, 2017
1 parent a21d9df commit a63711b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,15 @@ protected void ResolveNewExpressions(ExpressionParameter parameter, int i, Expre

protected void AppendNot(object Value)
{
this.Context.Result.Append("NOT");
var isAppend = !this.Context.Result.Contains(ExpressionConst.Format0);
if (isAppend)
{
this.Context.Result.Append("NOT");
}
else
{
this.Context.Result.Replace(ExpressionConst.Format0, "NOT");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public BinaryExpressionResolve(ExpressionParameter parameter) : base(parameter)
var lsrb = !leftIsBinary && rightBinary;
var lbrb = rightBinary && leftIsBinary;
var lsbs = !leftIsBinary && !rightBinary;
var isBegin = !base.Context.Result.Contains(ExpressionConst.Format0);
if (isBegin)
var isAppend = !base.Context.Result.Contains(ExpressionConst.Format0);
if (isAppend)
{
base.Context.Result.Append(ExpressionConst.Format3);
base.Context.Result.Append(ExpressionConst.Format0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1c022a5c-4e4d-4026-a8a3-f659b9740a1a")]
[assembly: AssemblyVersion("4.1.0.5")]
[assembly: AssemblyFileVersion("4.1.0.5")]
[assembly: AssemblyVersion("4.1.0.7")]
[assembly: AssemblyFileVersion("4.1.0.7")]
24 changes: 24 additions & 0 deletions Src/Asp.NetCore/SqlServerTest/src/SqlSugar/SqlSugarClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,30 @@ public virtual ISugarQueryable<SugarDynamic> Queryable(string tableName, string
DeleteableProvider<T> reval = base.CreateDeleteable<T>();
return reval;
}
public virtual IDeleteable<T> Deleteable<T>(Expression<Func<T, bool>> expression) where T : class, new()
{
return this.Deleteable<T>().Where(expression);
}
public virtual IDeleteable<T> Deleteable<T>(dynamic primaryKeyValue) where T : class, new()
{
return this.Deleteable<T>().In(primaryKeyValue);
}
public virtual IDeleteable<T> Deleteable<T>(dynamic [] primaryKeyValues) where T : class, new()
{
return this.Deleteable<T>().In(primaryKeyValues);
}
public virtual IDeleteable<T> Deleteable<T>(List<dynamic> pkValue) where T : class, new()
{
return this.Deleteable<T>().In(pkValue);
}
public virtual IDeleteable<T> Deleteable<T>(T deleteObj) where T : class, new()
{
return this.Deleteable<T>().Where(deleteObj);
}
public virtual IDeleteable<T> Deleteable<T>(List<T> deleteObjs) where T : class, new()
{
return this.Deleteable<T>().Where(deleteObjs);
}
#endregion

#region Updateable
Expand Down

0 comments on commit a63711b

Please sign in to comment.