Exemple #1
0
        public async Task <bool> UpdateListAsync <T>(List <T> entity) where T : class
        {
            bool @bool = false;
            InterfaceRepoUpdateListAsync repoUpdateListAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoUpdateListAsync.UpdateListAsync <T>(entity);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #2
0
        public async Task <bool> SaveUpdateDeleteAsync <T>(T entity, EnumSaveUpdateDelete enumSUDT) where T : class
        {
            bool @bool = false;
            InterfaceRepoSaveUpdateDeleteAsync repoSaveUpdateDeleteAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoSaveUpdateDeleteAsync.SaveUpdateDeleteAsync <T>(entity, enumSUDT);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #3
0
        public async Task <bool> DeleteActiveBoolAsync <T>(int IDIdentity) where T : class
        {
            bool @bool = false;
            InterfaceRepoDeleteActiveBoolAsync repoWrapperAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoWrapperAsync.DeleteActiveBoolAsync <T>(IDIdentity);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #4
0
        public async Task <bool> SaveAsync <T1, T2>(T1 entity1, T2 entity2)
            where T1 : class
            where T2 : class
        {
            bool @bool = false;
            InterfaceRepoSaveAsync repoWrapperAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoWrapperAsync.SaveAsync <T1, T2>(entity1, entity2);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #5
0
        public async Task <bool> DeleteListAsync <T1, T2>(List <int> iDIdentity1, List <int> iDIdentity2)
            where T1 : class
            where T2 : class
        {
            bool @bool = false;
            InterfaceRepoDeleteListAsync repoWrapperAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoWrapperAsync.DeleteListAsync <T1, T2>(iDIdentity1, iDIdentity2);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #6
0
        public async Task <bool> SaveUpdateDeleteAsync <T1, T2, T3>(T1 entity1, EnumSaveUpdateDelete enumSUDT1, T2 entity2, EnumSaveUpdateDelete enumSUDT2, T3 entity3, EnumSaveUpdateDelete enumSUDT3)
            where T1 : class
            where T2 : class
            where T3 : class
        {
            bool @bool = false;
            InterfaceRepoSaveUpdateDeleteAsync repoSaveUpdateDeleteAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoSaveUpdateDeleteAsync.SaveUpdateDeleteAsync <T1, T2, T3>(entity1, enumSUDT1, entity2, enumSUDT2, entity3, enumSUDT3);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #7
0
        public async Task <bool> SaveUpdateListAsync <T1, T2, T3>(List <T1> entity1, bool isSaveT1, List <T2> entity2, bool isSaveT2, List <T3> entity3, bool isSaveT3)
            where T1 : class
            where T2 : class
            where T3 : class
        {
            bool @bool = false;
            InterfaceRepoSaveUpdateListAsync repoSaveUpdateListAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoSaveUpdateListAsync.SaveUpdateListAsync <T1, T2, T3>(entity1, isSaveT1, entity2, isSaveT2, entity3, isSaveT3);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #8
0
        public async Task <bool> DeleteAsync <T1, T2, T3>(int IDIdentity1, int IDIdentity2, int IDIdentity3)
            where T1 : class
            where T2 : class
            where T3 : class
        {
            bool @bool = false;
            InterfaceRepoDeleteAsync repoWrapperAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoWrapperAsync.DeleteAsync <T1, T2, T3>(IDIdentity1, IDIdentity2, IDIdentity3).ConfigureAwait(false);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #9
0
        public async Task <bool> UpdateAsync <T1, T2, T3, T4>(T1 entity1, T2 entity2, T3 entity3, T4 entity4)
            where T1 : class
            where T2 : class
            where T3 : class
            where T4 : class
        {
            bool @bool = false;
            InterfaceRepoUpdateAsync repoUpdateAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoUpdateAsync.UpdateAsync <T1, T2, T3, T4>(entity1, entity2, entity3, entity4);

            if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery)
            {
                @bool = true;
            }
            return(@bool);
        }
Exemple #10
0
        public async Task <bool> DeleteListAsync <T1, T2, T3, T4>(List <T1> entity1, List <T2> entity2, List <T3> entity3, List <T4> entity4)
            where T1 : class
            where T2 : class
            where T3 : class
            where T4 : class
        {
            bool @bool = false;
            InterfaceRepoDeleteListAsync repoWrapperAsync = new RepoWrapperAsync(new MirrorDBContext());
            var resultRepo = await repoWrapperAsync.DeleteListAsync <T1, T2, T3, T4>(entity1, entity2, entity3, entity4);

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