Hi all,
I'm trying to create a Quotation section in my WPF app and it's going to involve cascading ComboBoxes.
I use a local instance of MySql and ADO.NET with parameterised Stored Procedures to retrieve data.
I have created multiple category tables with FK relationships to a parent category table; my question is this:
Is it better to create a separate model/repo for each table in the application, or do I let MySql take some of the weight by creating a SP with joins and create just one SP/repo?
Is there a best practice here, or is this simply a preference issue?
I'm not interested in using ORM at this time, as a novice I can easily see when things break using my current approach.
Thanks
I'm trying to create a Quotation section in my WPF app and it's going to involve cascading ComboBoxes.
I use a local instance of MySql and ADO.NET with parameterised Stored Procedures to retrieve data.
I have created multiple category tables with FK relationships to a parent category table; my question is this:
Is it better to create a separate model/repo for each table in the application, or do I let MySql take some of the weight by creating a SP with joins and create just one SP/repo?
Is there a best practice here, or is this simply a preference issue?
I'm not interested in using ORM at this time, as a novice I can easily see when things break using my current approach.
Thanks