public bool RemoveAt(ISpecification <MenuInfo> spec) { //var entity = efCore.EntitySet.SingleOrDefault(spec.Expression); var entities = efCore.EntitySet.Where(spec.Expression); return(entities == null ? false : efCore.RemoveAt(entities)); }
public bool RemoveAt(ISpecification <QuestionInfo> spec) { var entity = efCore.EntitySet.FirstOrDefault(spec.Expression); return(entity == null ? false : efCore.RemoveAt(entity)); }
public bool RemoveAt(ISpecification <PermissionInfo> spec) { var entities = efCore.EntitySet.Where(spec.Expression); return(entities == null ? false : efCore.RemoveAt(entities)); }
public bool RemoveAt(ISpecification <ClassInfo> spec) { var entity = efCore.EntitySet.SingleOrDefault(spec.Expression); return(entity == null ? false : efCore.RemoveAt(entity)); }