This commit is contained in:
sunkaixuan
2017-05-12 20:32:36 +08:00
parent 36aee3b921
commit 9d95d62a25
2 changed files with 2 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ namespace SqlSugar
public IInsertable<T> Where(bool isInsertNull,bool isOffIdentity=false) public IInsertable<T> Where(bool isInsertNull,bool isOffIdentity=false)
{ {
this.IsOffIdentity = IsOffIdentity;
if (this.InsertBuilder.LambdaExpressions == null) if (this.InsertBuilder.LambdaExpressions == null)
this.InsertBuilder.LambdaExpressions = InstanceFactory.GetLambdaExpressions(this.Context.CurrentConnectionConfig); this.InsertBuilder.LambdaExpressions = InstanceFactory.GetLambdaExpressions(this.Context.CurrentConnectionConfig);
this.InsertBuilder.IsInsertNull = isInsertNull; this.InsertBuilder.IsInsertNull = isInsertNull;

View File

@@ -15,7 +15,7 @@ namespace SqlSugar
IInsertable<T> InsertColumns(Expression<Func<T, object>> columns); IInsertable<T> InsertColumns(Expression<Func<T, object>> columns);
IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns); IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns);
IInsertable<T> IgnoreColumns(Func<string,bool> ignoreColumMethod); IInsertable<T> IgnoreColumns(Func<string,bool> ignoreColumMethod);
IInsertable<T> Where(bool isInsertNull); IInsertable<T> Where(bool isInsertNull, bool isOffIdentity = false);
KeyValuePair<string, List<SugarParameter>> ToSql(); KeyValuePair<string, List<SugarParameter>> ToSql();
EntityInfo EntityInfo { get; set; } EntityInfo EntityInfo { get; set; }
} }