public DoTrack BuildItem(DataRow reader)
 {
     var item = new DoTrack
                 {
                    DatabaseName = Convert.ToString(reader["DatabaseName"]) ,
                    Version = Convert.ToDouble(reader["Version"]),
                    CreateDate = Convert.ToDateTime(reader["CreateDate"]),
                    UpdateDate = Convert.ToDateTime(reader["UpdateDate"])
                 };
      item.SetChanged(false);
      return item;
 }
 /// <summary>
 /// Sets the version number
 /// </summary>
 /// <param name="profile"></param>
 /// <param name="version"></param>
 /// <param name="transaction"></param>
 public void SetVersion(DatabaseVersionSetup.Profile profile, double version, ITransaction transaction)
 {
     IConnection connection = profile.RepositoryProfile.GetDatabase();
     var access = new DoTrackDataAccess(() => connection, TableName);
     var track = new DoTrack { DatabaseName = profile.RepositoryProfile.DatabaseRepository, Version = version };
     try{
         access.Insert(track, transaction);
     }
     catch (Exception){
         access.Update(track, transaction);
     }
 }