예제 #1
0
        public bool Delete <T>(int IDIdentity) where T : class
        {
            bool @bool = false;
            InterfaceRepoDelete repoWrapper = new RepoWrapper(new MirrorDBContext());
            var resultRepo = repoWrapper.Delete <T>(IDIdentity);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
예제 #2
0
        public bool Delete <T1, T2>(T1 entity1, T2 entity2)
            where T1 : class
            where T2 : class
        {
            bool @bool = false;
            InterfaceRepoDelete repoWrapper = new RepoWrapper(new MirrorDBContext());
            var resultRepo = repoWrapper.Delete <T1, T2>(entity1, entity2);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
예제 #3
0
        public bool Delete <T1, T2, T3, T4>(int IDIdentity1, int IDIdentity2, int IDIdentity3, int IDIdentity4)
            where T1 : class
            where T2 : class
            where T3 : class
            where T4 : class
        {
            bool @bool = false;
            InterfaceRepoDelete repoWrapper = new RepoWrapper(new MirrorDBContext());
            var resultRepo = repoWrapper.Delete <T1, T2, T3, T4>(IDIdentity1, IDIdentity2, IDIdentity3, IDIdentity4);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }