Ok Probably whats on your mind here is what the heck is he talking about ?
and that is what about to say now.
What I want to do is Make a Generic Repository Interface that can be used for any entity so for instance if I had more that one POCO “Plain Old C# Objects” All I need in my repository layer is just EntityNameRepository class that Inherits from the generic Interface, and though less interface implementations, Less dependencies, more testability and less code equals more fun,
So here is the Interface Class
and that's it just inherit implement and off you go !!!
and that is what about to say now.
What I want to do is Make a Generic Repository Interface that can be used for any entity so for instance if I had more that one POCO “Plain Old C# Objects” All I need in my repository layer is just EntityNameRepository class that Inherits from the generic Interface, and though less interface implementations, Less dependencies, more testability and less code equals more fun,
So here is the Interface Class
and that's it just inherit implement and off you go !!!
Comments
Post a Comment