コード例 #1
0
ファイル: Match.cs プロジェクト: gbahns/Tennis
		private void Populate(SafeDataReader dr)
		{
			_ID = dr.GetInt32();
			_EventID = dr.GetInt32();
			_MatchDate = dr.GetDateTime();
			_WinnerID = dr.GetInt32();
			_LoserID = dr.GetInt32();
			_Score.Fetch(dr);

			ValidationRules.CheckRules();
		}
コード例 #2
0
ファイル: PlayerMatch.cs プロジェクト: gbahns/Tennis
		private void _Fetch(SafeDataReader dr)
		{
			_ID = dr.GetInt32();
			_MatchDate = dr.GetDateTime();
			_EventID = dr.GetInt32();
			_EventName = dr.GetString();
			_ClassID = dr.GetInt32();
			_ClassName = dr.GetString();
			_Result = dr.GetString();
			_OpponentID = dr.GetInt32();
			_OpponentName = dr.GetString();
			_Score.Fetch(dr);
			//Log.Info("Fetched PlayerMatch {0}", _ID);
		}
コード例 #3
0
ファイル: MatchSummary.cs プロジェクト: gbahns/Tennis
		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();
		}
コード例 #4
0
ファイル: TennisEvent.cs プロジェクト: gbahns/Tennis
		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();
		}