예제 #1
0
        public List <Domain.RelationShip> Query(Func <QueryDescriptor <Domain.RelationShip>, QueryDescriptor <Domain.RelationShip> > container)
        {
            QueryDescriptor <Domain.RelationShip> q = container(QueryDescriptorBuilder.Build <Domain.RelationShip>());
            var datas = _relationShipRepository.Query(q)?.ToList();

            //WrapLocalizedLabel(datas);
            return(datas);
        }
예제 #2
0
        public bool DeleteById(params Guid[] id)
        {
            Guard.NotEmpty(id, nameof(id));
            var result   = false;
            var deleteds = _relationShipRepository.Query(x => x.RelationshipId.In(id));

            if (deleteds.NotEmpty())
            {
                result = DeleteCore(deleteds.ToArray());
            }
            return(result);
        }