Пример #1
0
        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));
        }
Пример #2
0
        public bool RemoveAt(ISpecification <QuestionInfo> spec)
        {
            var entity = efCore.EntitySet.FirstOrDefault(spec.Expression);

            return(entity == null ? false : efCore.RemoveAt(entity));
        }
Пример #3
0
        public bool RemoveAt(ISpecification <PermissionInfo> spec)
        {
            var entities = efCore.EntitySet.Where(spec.Expression);

            return(entities == null ? false : efCore.RemoveAt(entities));
        }
Пример #4
0
        public bool RemoveAt(ISpecification <ClassInfo> spec)
        {
            var entity = efCore.EntitySet.SingleOrDefault(spec.Expression);

            return(entity == null ? false : efCore.RemoveAt(entity));
        }