Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
9d95d62a25
  1. 1
      SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs
  2. 2
      SqlSugar/Interface/Insertable.cs

1
SqlSugar/Abstract/InsertableProvider/InsertableProvider.cs

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

2
SqlSugar/Interface/Insertable.cs

@ -15,7 +15,7 @@ namespace SqlSugar
IInsertable<T> InsertColumns(Expression<Func<T, object>> columns);
IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns);
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();
EntityInfo EntityInfo { get; set; }
}

Loading…
Cancel
Save