Base solution for your next web application

Activities of "eivanov"

Answer

Sorry, i'm wrong.

First token remains valid.

Nevertheless, is it the right way?

Thanks, ismcagdas.

You have misunderstood me, perhaps I asked a bad questions. I'll try to describe my questions in more detail.

  1. I have my AppServices, which simple inherited from CrudAppService without overriding methods.
public class EmpAppService : CrudAppService<Emp, EmpDto, long, GetAllEmpsInput>, IEmpAppService
{
}

Also i have custom permissions for read, update, delete my entities Emp. Should i override all base class (CrudAppService) methods in my EmpAppService for setting AbpAuthorize("permission") attribute to Get, Update and other methods?

  1. EmpAppService inheritance
EmpAppService : CrudAppService : ApplicationService : AbpServiceBase

But i have a base class in my app services layer named MyProjectAppServiceBase .

MyProjectAppServiceBase : ApplicationService

This class defined various methods like GetCurrentUserAsync, GetCurrentTenantAsync and my common methods, which i want to use in EmpAppService, but i can't because EmpAppService is not descendant of the MyProjectAppServiceBase class.

Ok, i can create MyProjectCrudAppServiceBase

EmpAppService : MyProjectCrudAppServiceBase  : CrudAppService

and duplicate methods from MyProjectAppServiceBase, but it's not DRY :)

Showing 1 to 2 of 2 entries