/// <summary>
 /// 设置Is Null查询条件
 /// </summary>
 /// <typeparam name="TEntity">实体类型</typeparam>
 /// <param name="expression">列名表达式</param>
 /// <returns></returns>
 public ISqlBuilder IsNull <TEntity>(Expression <Func <TEntity, object> > expression) where TEntity : class
 {
     WhereClause.IsNull(expression);
     return(this);
 }
Exemplo n.º 2
0
 public void TestIsNull_1()
 {
     _clause.IsNull("Name");
     Assert.Equal("Where [Name] Is Null", GetSql());
 }
 /// <summary>
 /// 设置Is Null查询条件
 /// </summary>
 /// <param name="column">列名</param>
 /// <returns></returns>
 public ISqlBuilder IsNull(string column)
 {
     WhereClause.IsNull(column);
     return(this);
 }