Esempio n. 1
0
 public static IDeleteStatement <TEntity> ReceivedAndLessThan <TEntity>(this IDeleteStatement <TEntity> deleteCommand,
                                                                        string property,
                                                                        string value) where TEntity : class, new()
 {
     return(deleteCommand.Received()
            .And(
                Arg.Is <Expression <Func <TEntity, bool> > >(
                    e => e.IsComparisonWith(property, "<", value))));
 }
Esempio n. 2
0
 public static IDeleteStatement <TEntity> ReceivedWhereIn <TEntity, TMember>(
     this IDeleteStatement <TEntity> deleteCommand,
     string property,
     params TMember[] values) where TEntity : class, new()
 {
     return(deleteCommand.Received()
            .WhereIn(
                Arg.Is <Expression <Func <TEntity, TMember> > >(
                    e => e.HasMemberName(property)), Arg.Is <TMember[]>(e => AssertMatch(values, e))));
 }