Esempio n. 1
0
		private void Fetch(SafeDataReader dr)
		{
			//todo: load object data from data reader 
			//_TennisEvent = TennisObjects.TennisEvent.GetTennisEvent() 
			_ID = dr.GetInt32();
			_Name = dr.GetString();
			_startDate = dr.GetDateTime();
			_endDate = dr.GetDateTime();
			_eventType = (EventTypeEnum)dr.GetInt16();
			_teamPlay = dr.GetBoolean();
			_classificationID = dr.GetInt32();
			_classification = dr.GetString();
			_firstMatchDate = dr.GetDateTime();
			_lastMatchDate = dr.GetDateTime();
			_Matches.Won = dr.GetInt32();
			_Matches.Lost = dr.GetInt32();
			_Sets.Won = dr.GetInt32();
			_Sets.Lost = dr.GetInt32();
			_Games.Won = dr.GetInt32();
			_Games.Lost = dr.GetInt32();
		}
Esempio n. 2
0
		internal void Fetch(SafeDataReader dr)
		{
			for (int i = 0; i <= 4; i++)
			{
				_Sets[i].Fetch(dr);
			}
			_LoserDefaulted = dr.GetBoolean();
		}
Esempio n. 3
0
		private void _Fetch(SafeDataReader dr)
		{
			_ID = dr.GetInt32();
			_Name = dr.GetString();
			_ClassificationID = dr.GetInt32();
			_BeginDate = dr.GetDateTime();
			_EndDate = dr.GetDateTime();
			_EventType = (EventTypeEnum)dr.GetInt16();
			_TeamPlay = dr.GetBoolean();
		}