FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteProcedures.cs
chris.watts90@outlook.com bc1947a31f Move the database calls/procedures out into the SQLiteRepository, IRepository implementation.
created SQLiteProcedures to hold all the strings for procs. Constants also serves similar purpose.
renamed Class1 to SQLiteRepository.cs
added all the necessary nuget packages for SQLite.Net-PCL
2017-01-31 21:59:42 +00:00

18 lines
786 B
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=?";
}
}