示例#1
0
 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));
 }
示例#2
0
 public IQueryable <T> SearchFor(Expression <Func <T, bool> > predicate)
 {
     return(DataTable.Where(predicate));
 }