public InsertAtDB ( bool dbconOpened, string tableName ) : int | ||
dbconOpened | bool | |
tableName | string | |
return | int |
public override int InsertAtDB(bool dbconOpened, string tableName)
{
return SqliteRun.Insert(dbconOpened, tableName,
uniqueID.ToString(),
personID, sessionID,
type, distance, time,
description, simulated, initialSpeed);
}
public int UploadRun(Run myTest) { int temp = myTest.UniqueID; myTest.UniqueID = -1; int id = myTest.InsertAtDB(false, Constants.RunTable); myTest.UniqueID = temp; return(id); //uniqueID of person at server }