Crud for Roles

Aug 3, 2011 at 5:19 PM

Can you edit, add or delete Roles in current version?

 

Because of Role entity does not implement the DelEntity, it cannot use the default CRUD service.

And when i try to switch to DelEntity in Role object, it will just run into runtime Exception because it has to be implementing Entity because it is a part of User entity as a collection.

So in a simple world. can i use the CRUD service on Role object or do i have to make a u-turn and implement method ADD, DELETE and UPDATE that communicate straight to DBContextFactory ?

Sincerly

arnor 

Coordinator
Aug 3, 2011 at 6:34 PM

there are many ways you can handle this,

you could make the Role a DelEntity and refactor everything related

or you could create a CRUD service for the Entity

use inheritance , overrides, many many things can be done

Aug 4, 2011 at 10:12 AM

ok thank you for the answer