Jump.InsertAtDB C# (CSharp) Méthode

InsertAtDB() public méthode

public InsertAtDB ( bool dbconOpened, string tableName ) : int
dbconOpened bool
tableName string
Résultat int
    public override int InsertAtDB(bool dbconOpened, string tableName)
    {
        return SqliteJump.Insert(dbconOpened, tableName,
                uniqueID.ToString(),
                personID, sessionID,
                type, tv, tc, fall,
                weight, description,
                angle, simulated);
    }

Usage Example

    public int UploadJump(Jump myTest)
    {
        //store event uniqueID
        int temp = myTest.UniqueID;

        //change value for being inserted with new numeration in server
        myTest.UniqueID = -1;

        //insert
        int id = myTest.InsertAtDB(false, Constants.JumpTable);

        //roll back person unique id value
        myTest.UniqueID = temp;

        return(id);        //uniqueID of person at server
    }
All Usage Examples Of Jump::InsertAtDB