I'm new to using interfaces in C#. I was watching a tutorial about it and learned how to use it.
I'm really into best practices. On the tutorial, it only uses a Person class on the Interface to do CRUD. I'm just wondering if it's advisable to create different Interface Repositories for each model class e.g. Person (IPersonRepository), Animal (IAnimalRespository) etc or can I just use an IObjectRepository if the operations are the same?
Aucun commentaire:
Enregistrer un commentaire