FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/SQLiteRepository
Chris.Watts90@outlook.com 72e98bdd2e optimise code to reduce code complexity on UpdateUser method in particular.
code has been split into smaller methods, and queries on db have been optimised to make fewer, larger queries than lots of small queries. (using IN sql queries).
restructured UpdateUser to be more logical which has reduced some of the complexity of the method.
When deleting unassociated cards, the system will ensure all timelogs associated to those Ids are deleted also.
CreateGroup will now not allow duplicate groups, but will return the ID of the existing Group found in the DB.
pulled out GetUserCount method to simplify the GetUsers method.
removed empty quotes in favour of string.empty
#95
2018-06-06 10:50:06 +01:00
..
Converters add converters to help convert from/to data transfer objects. 2018-06-04 11:07:29 +01:00
Properties create db version object for table to hold our db version. 2018-03-06 17:07:05 +00:00
UpgradeScripts create db version object for table to hold our db version. 2018-03-06 17:07:05 +00:00
CardUniqueId.cs add LastUsed property 2017-03-03 21:36:22 +00:00
Constants.cs Move the database calls/procedures out into the SQLiteRepository, IRepository implementation. 2017-01-31 21:59:42 +00:00
DBVersion.cs create db version object for table to hold our db version. 2018-03-06 17:07:05 +00:00
GroupDb.cs create GroupDb object to hold group information 2017-03-08 16:23:14 +00:00
LogDirectionDb.cs renamed TimeLogDB to TimeLogDb. 2017-02-09 21:33:52 +00:00
LogSourceDb.cs Add Log Source Identification to determine if a log has been created/updated from the UI/Other Applications 2017-04-12 22:00:08 +01:00
packages.config fix relative file paths (file not found errors). 2017-02-16 17:07:48 +00:00
SQLiteProcedures.cs add method to use SQL In queries to retrieve lists. 2018-06-06 10:45:22 +01:00
SQLiteRepository.cs optimise code to reduce code complexity on UpdateUser method in particular. 2018-06-06 10:50:06 +01:00
SQLiteRepository.csproj add converters to help convert from/to data transfer objects. 2018-06-04 11:07:29 +01:00
TimeLogDb.cs update TimeLogDb to use LogSourceDb 2017-04-12 22:01:10 +01:00
UserGroupJoinDb.cs Add Joining table object to link users to groups. 2017-03-08 16:23:57 +00:00
UserIdentity.cs #4 Added IsContractor flag to the UserIdentity and User Object, the Api will now relate that status to the output object. note, notimplemented in the UI yet to control this flag. 2017-02-03 12:39:38 +00:00