return UserId using the Out Parameter Added GetLastTimeLog procedure. Added Comments to help figure out procedure steps later on.
21 lines
1.0 KiB
C#
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";
|
|
}
|
|
} |