-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup DAL system #40
Comments
I have a lot of issues with the current manual DAL model in the GRA code (which I suspect was initially generated from a tool anyways). One of my "big picture" task items is to refactor this aspect of the application completely and move to a more integrated ORM-type solution (I'm leaning towards Microsoft's Entity Framework). In such a move, all of this boilerplate DAL code (and the stored procedures) would be eliminated and replaced with a simpler and cleaner data model. I think that's the right approach though it's not something I'm ready to tackle just yet since I know we have some other changes which take the priority here. I'm envisioning this more as a change for the next major release. |
Ok, that sounds like a good plan. If I improved some of the current code by removing duplication (in a fork of your branch) would that be helpful in the short term? |
You could but I'm not sure that it's worth it - I don't think the duplicated code is causing much of a performance issue. |
Ok I won't worry about it then. I wasn't thinking of it in terms of performance but maintainability and modification. I will probably be adding a few fields so it could be error prone to copy-paste often. |
In several files I noticed that many methods have a large amount of code duplicated between them for reading and writing data to/from SQL queries. Could all these be condensed into one function for reading from and one for writing to a SQL query? I am aware that sometimes their are slight design inconsistencies that make this difficult, but from my file diffs they do look very similar.
Here are a few examples:
Patron.cs
Badge.cs
Badge.cs
The text was updated successfully, but these errors were encountered: