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

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

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

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