InsertAtDB() public method

public InsertAtDB ( bool dbconOpened, string tableName ) : int
dbconOpened bool
tableName string
return int
コード例 #1
0
    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
    }
コード例 #2
0
 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
 }