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(); }
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); }
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(); }
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(); }