I am something new in programming, currently I have made a context in EF. Once generated the models for example I have clients and orders, and I have the following methods in a controller, GetOrderFromClient (...), GetOrderFromDate (...). But I would like to know what would be the correct way to organize these methods or if there is any design pattern. My idea for example I have to create another model class (OrdersOperations) and I pass the context as parameter to then make the queries.
Aucun commentaire:
Enregistrer un commentaire