public static int Delete <TEntity>(this System.Data.Linq.Table <TEntity> source, System.Linq.Expressions.Expression <Func <TEntity, bool> > predicate) where TEntity : class { System.Data.Linq.DataContext dc = source.Context; System.Data.Common.DbCommand c = dc.GetCommand(source.Where(predicate)); return(Delete(c)); }
public IQueryable <T> SearchFor(Expression <Func <T, bool> > predicate) { return(DataTable.Where(predicate)); }