From 3eda49b792e585940c76d54a467575b58807fac7 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 8 Jan 2019 13:18:43 +0300 Subject: [PATCH] Update ClientRepository.cs --- .../Clients/ClientRepository.cs | 69 ------------------- 1 file changed, 69 deletions(-) diff --git a/modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/Clients/ClientRepository.cs b/modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/Clients/ClientRepository.cs index aee58475fe..62043562e8 100644 --- a/modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/Clients/ClientRepository.cs +++ b/modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/Clients/ClientRepository.cs @@ -42,75 +42,6 @@ namespace Volo.Abp.IdentityServer.Clients return await DbSet.CountAsync(); } - //public override async Task UpdateAsync(Client entity, bool autoSave = false, CancellationToken cancellationToken = default) - //{ - - // var secrets = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var secret in secrets) - // { - // DbContext.Set().Remove(secret); - // } - - // var claims = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var claim in claims) - // { - // DbContext.Set().Remove(claim); - // } - - // var grantTypes = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var grantType in grantTypes) - // { - // DbContext.Set().Remove(grantType); - // } - - // var restrictions = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var restriction in restrictions) - // { - // DbContext.Set().Remove(restriction); - // } - - // var properties = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var clientProperty in properties) - // { - // DbContext.Set().Remove(clientProperty); - // } - - // var scopes = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var scope in scopes) - // { - // DbContext.Set().Remove(scope); - // } - - // var corsOrigins = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var corsOrigin in corsOrigins) - // { - // DbContext.Set().Remove(corsOrigin); - // } - - // var redirectUris = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var redirectUri in redirectUris) - // { - // DbContext.Set().Remove(redirectUri); - // } - - // var postLogoutRedirectUris = DbContext.Set().Where(s => s.ClientId == entity.Id); - - // foreach (var postLogoutRedirectUri in postLogoutRedirectUris) - // { - // DbContext.Set().Remove(postLogoutRedirectUri); - // } - - // return await base.UpdateAsync(entity, autoSave, cancellationToken); - //} - public override IQueryable WithDetails() { return GetQueryable().IncludeDetails();