I have a class with two ways:
public class WorkManagement { public string DoYourWork(Manager manager) {
Manager and employee are classes created from a database (in the Entity Framework). I think this is ugly, for example, when I need to extend a class, so I want to reorganize this into:
public interface IDoWork { string DoSomeWork(); } public class Manager:IDoWork { public string DoSomeWork() {
But how can I deal with automatically generated classes? How do I add this thing?
Thanks.
Vimvq1987
source share