aspnetboilerplate

Disable SoftDelete for AbpUserRole

自闭症网瘾萝莉.ら 提交于 2019-11-28 13:12:51
By default, the AbpUserRole and AbpRole implement ISoftDelete . Is it possible to disable it? I tried to do this: [AbpAuthorize(AppPermissions.Pages_Administration_Roles_Delete)] public async Task DeleteRole(EntityDto input) { using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete)) { var role = await _roleManager.GetRoleByIdAsync(input.Id); var users = await UserManager.GetUsersInRoleAsync(role.Name); foreach (var user in users) { CheckErrors(await UserManager.RemoveFromRoleAsync(user, role.Name)); } CheckErrors(await _roleManager.DeleteAsync(role)); } } Although the filter is

Integrated Windows Authentication in ABP framework

左心房为你撑大大i 提交于 2019-11-28 11:39:56
问题 I'm attempting to use ABP with Windows Authentication rather than Table-based authentication. The plan is to have the framework: Detect that the website is in a Windows security context and bypass the login page. Then associate Windows Identity/Roles and use those to map the Roles/Permissions defined in the database. I did not see anything in the documentation regarding this Windows-integrated approach. If anyone has done this previously, I appreciate any tips. I think my best bet would be to

ASP.NET Boilerplate - Error building new project for MVC and EF combo

纵饮孤独 提交于 2019-11-28 06:24:05
问题 I have just downloaded, today, the free startup template for MVC5 and EF. On opening, restoring all packages then building, I get the following build error in the "Core" project: Error CS0508 'AppSettingProvider.GetSettingDefinitions(SettingDefinitionProviderContext)': return type must be 'IEnumerable' to match overridden member 'SettingProvider.GetSettingDefinitions(SettingDefinitionProviderContext)' Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must

Disable SoftDelete for AbpUserRole

一世执手 提交于 2019-11-27 07:40:11
问题 By default, the AbpUserRole and AbpRole implement ISoftDelete . Is it possible to disable it? I tried to do this: [AbpAuthorize(AppPermissions.Pages_Administration_Roles_Delete)] public async Task DeleteRole(EntityDto input) { using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete)) { var role = await _roleManager.GetRoleByIdAsync(input.Id); var users = await UserManager.GetUsersInRoleAsync(role.Name); foreach (var user in users) { CheckErrors(await UserManager.RemoveFromRoleAsync