Run.InsertAtDB C# (CSharp) 메소드

InsertAtDB() 공개 메소드

public InsertAtDB ( bool dbconOpened, string tableName ) : int
dbconOpened bool
tableName string
리턴 int
    public override int InsertAtDB(bool dbconOpened, string tableName)
    {
        return SqliteRun.Insert(dbconOpened, tableName,
                uniqueID.ToString(),
                personID, sessionID,
                type, distance, time,
                description, simulated, initialSpeed);
    }

Usage Example

    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
    }
All Usage Examples Of Run::InsertAtDB