FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteProcedures.cs
Chris.Watts90@outlook.com ea6fc3721d fixed update/create where HoursPerWeek/IsContractor info wasnt being updated/changed.
return UserId using the Out Parameter
Added GetLastTimeLog procedure. Added Comments to help figure out procedure steps later on.
2017-02-07 17:23:04 +00:00

21 lines
1.0 KiB
C#

namespace SQLiteRepository
{
internal static class SQLiteProcedures
{
public const string GET_ALL_USERS = "select * from UserIdentity";
public const string GET_USER_BY_ID = "select * from UserIdentity where Id=?";
public const string GET_CARDS_BY_USER_ID = "select * from CardUniqueId where UserId_FK=?";
public const string GET_CARDS_BY_UNIQUE_ID = "select * from CardUniqueId where CardUId=?";
public const string GET_UNASSIGNED_CARD_LIST = "select * from CardUniqueId where UserId_FK=?";
public const string GET_USER_BY_FIRST_AND_LAST =
"select * from UserIdentity where FirstName = ? AND LastName = ?";
public const string UPDATE_CARD_USER_ID = "update CardUniqueId set UserId_FK=? where Id=?";
public const string SEARCH_USER_LIST = "SELECT * FROM[UserIdentity] where(FirstName Like ? OR LastName Like ?)";
public const string GET_LAST_TIMELOG_DIRECTION = "SELECT * FROM TimeLog where UserId_FK = ? order by SwipeEventDateTime LIMIT 1";
}
}