示例#1
0
        ///<include file='docs.xml' path='doc/members/member[@name="M:GenericRepositoryAndService.Service.GenericService`1.Delete(`0)"]/*'/>
        public void Delete(T t)
        {
            dynamic temprep = _repository;

            GenericToolsCRUD.PrepareDelete <T>(temprep.DataContext, GenericToolsTypeAnalysis.GetKeysValues(t));
            _repository.Delete(t);
        }
示例#2
0
        ///<include file='docs.xml' path='doc/members/member[@name="M:GenericRepositoryAndService.Service.GenericService`1.Delete(System.Object[])"]/*'/>
        public void Delete(params object[] objs)
        {
            GenericToolsTypeAnalysis.CheckIfObjectIsKey <T>(objs);
            dynamic temprep = _repository;

            GenericToolsCRUD.PrepareDelete <T>(temprep.DataContext, objs);
            _repository.Delete(objs);
        }