public int Batch(IEnumerable <TEntity> instances, Expression <Func <IRepository <TEntity>, TEntity, int> > fnOperation) { return(Queryable.BatchOperate(instances.Cast <IEntity>(), fnOperation)); }