//*Funtions //function for inseting into database row public string[] MakeDBLine() { string[] TheLine = new string[17]; TheLine[0] = ("'" + ViD + "'"); TheLine[1] = ("'" + AtTime.TimeOfDay.ToString() + "'"); TheLine[2] = ("'" + OnLink.StartNode.ToString() + ":" + OnLink.EndNode.ToString() + "'"); TheLine[3] = LinkDist.ToString(); TheLine[4] = Vspeed.ToString(); TheLine[5] = X.ToString(); TheLine[6] = Y.ToString(); TheLine[7] = Z.ToString(); TheLine[8] = InStage.ToString(); TheLine[9] = InScenario.ToString(); int ObsoleteINT = Convert.ToInt32(Obsolete); TheLine[10] = ("'" + ObsoleteINT.ToString() + "'"); TheLine[11] = "NULL"; TheLine[12] = "NULL"; TheLine[13] = ("'" + NextLink + "'"); TheLine[14] = ("'" + NextNextLink + "'"); TheLine[15] = "NULL5"; TheLine[16] = "NULL5"; return(TheLine); }
//*Funtions //function for inseting into database row public string[] MakeDBLine() { string[] TheLine = new string[12]; TheLine[0] = ("'" + AtTime.TimeOfDay.ToString() + "'"); TheLine[1] = ("'" + OnLink.StartNode.ToString() + ":" + OnLink.EndNode.ToString() + "'"); TheLine[2] = LinkDist.ToString(); TheLine[3] = Vspeed.ToString(); TheLine[4] = Vtype.ToString(); TheLine[5] = Lane.ToString(); TheLine[6] = ("'" + BornTime.TimeOfDay.ToString() + "'"); TheLine[7] = ("'" + Source + "'"); TheLine[8] = ("'" + NextLink + "'"); TheLine[9] = ("'" + NextNextLink + "'"); TheLine[10] = ("'" + NextTurn + "'");; //NextTurn TheLine[11] = ("'" + NextNextTurn + "'"); //NextNextTurn return(TheLine); }