Further major refactoring of code

This is another commit to mostly version the code. There have been a
considerable number of changes and there is functionality that I am
still determining whether it should lie within the manager or the model
class itself. It makes the most sense to possibly add the "Update" or
database manipulation functions on the models themselves. On the other
hand, instead of creating and generating the ID in the model, the
current design is to create the entry in the database first, get the
last insert row ID and create a new and complete model that is returned
back by the function. This allows us to leverage the autoincrement
functionality of the database rather than trying to design a function
and/ or make an additional call to the database.

**NOTE: Code is non-functional due to some classes not having their
errors resolved.
This commit is contained in:
雲華
2022-04-13 02:59:21 -04:00
parent 349589674f
commit 306ac411b3
10 changed files with 397 additions and 255 deletions

View File

@@ -16,7 +16,6 @@ namespace Ophelias.Managers
internal TransactionTableManager(DatabaseManager manager)
{
dbManager = manager;
cur = manager.cur;
}
}
}