public void OrIsNull_calls_And_with_arguments() { IClauseCollection <TestClass> clauseCollection = A.Fake <IClauseCollection <TestClass> >(); IClauseCollectionExtensions.OrIsNull(clauseCollection, x => x.Title); A.CallTo(() => clauseCollection.Or("Title", SqlOperator.Is, "null")).MustHaveHappened(); }
public static IClauseCollection <T> Or <T, TProp>(this IClauseCollection <T> clauseCollection, Expression <Func <T, TProp> > property, SqlOperator sqlOperator, TProp value, Func <TProp, bool> applyPredicate) { if (applyPredicate(value)) { clauseCollection.Or(property, sqlOperator, value); } return(clauseCollection); }
public static IClauseCollection <T> OrIsNull <T, TProp>(this IClauseCollection <T> clauseCollection, Expression <Func <T, TProp> > property) { clauseCollection.Or(property.MemberName(), SqlOperator.Is, "null"); return(clauseCollection); }
public static IClauseCollection <T> Or <T, TProp>(this IClauseCollection <T> clauseCollection, Expression <Func <T, TProp> > property, TProp value) { return(clauseCollection.Or(property, SqlOperator.Equal, value)); }
public static IClauseCollection Or(this IClauseCollection clauseCollection, string column, object value) { return(clauseCollection.Or(column, SqlOperator.Equal, value)); }