Last post Jun 20, 2010 02:19 PM by toas1
Jun 20, 2010 01:31 AM|rajivdotnet|LINK
I have an entity class that is having various methods that are responsible for different types of operations (such as controller, Bussiness rule, UI formatting etc.). Is it possible to group the related methods so that when the client calls any of these methods
we specify the method group. for e.g:
Here the Customer is the entity class and the Controller is the group that will have methods such as add, update & delete. Can we use Nested classes for this purpose?
Jun 20, 2010 10:17 AM|nizam133|LINK
better you use Interface for each of your object and implement all interfaces in group class, now to access the methods you can use
ICustomer icustomer = new gourpClassName()
hope that make sense
Jun 20, 2010 02:19 PM|toas1|LINK
why do you have a controller and UI formatting stuff inside your Entites? For me it sounds like the business rules are the only thing you desciribe that really belong there...