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