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