public override void FillFromDataRow(DataRow dr) { this.MatchId = DbConvert.ToInt64(dr, "MatchId"); this.ExpiryDate.Value = DbConvert.ToDateTimeSr(dr, "ExpiryDate"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateId"); this.MatchMinute.Value = DbConvert.ToInt32(dr, "MatchMinute"); this.PeriodInfo.Value = IntToPeriodInfo(DbConvert.ToInt32(dr, "PeriodInfo")); this.Status.Value = IntToMatchStatus(DbConvert.ToInt32(dr, "Status")); this.Score.Value = DbConvert.ToString(dr, "Score"); }
public override void FillFromDataRow(System.Data.DataRow dr) { this.MatchId = DbConvert.ToInt64(dr, "MatchId"); this.BtrMatchId = DbConvert.ToInt64(dr, "BtrMatchId"); this.TournamentGroupId.Value = DbConvert.ToNullableInt64(dr, "TournamentGroupId"); this.CategoryGroupId.Value = DbConvert.ToNullableInt64(dr, "CategoryGroupId"); this.SportGroupId.Value = DbConvert.ToNullableInt64(dr, "SportGroupId"); this.StartDate.Value = DbConvert.ToDateTimeSr(dr, "StartDate"); this.IsLiveBet.Value = DbConvert.ToInt32(dr, "IsLiveBet") > 0; this.HomeCompetitorId.Value = DbConvert.ToInt64(dr, "HomeCompetitorId"); this.AwayCompetitorId.Value = DbConvert.ToInt64(dr, "AwayCompetitorId"); this.Score.Value = DbConvert.ToString(dr, "Score"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateID"); this.TeamWon = DbConvert.ToString(dr, "TeamWon"); this.ExtendedState.Value = DbConvert.ToString(dr, "ExtendedState"); }
public override void FillFromDataRow(System.Data.DataRow dr) { this.MatchId = DbConvert.ToInt64(dr, "MatchId"); this.BtrMatchId = DbConvert.ToInt64(dr, "BtrMatchId"); this.StartDate.Value = DbConvert.ToDateTimeSr(dr, "StartDate"); this.ExpiryDate.Value = DbConvert.ToDateTimeSr(dr, "ExpiryDate"); this.EndDate.Value = DbConvert.ToDateTimeSr(dr, "EndDate"); this.HomeCompetitorId.Value = DbConvert.ToInt64(dr, "HomeCompetitorId"); this.AwayCompetitorId.Value = DbConvert.ToInt64(dr, "AwayCompetitorId"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateID"); this.Code.Value = DbConvert.ToInt32(dr, "Code"); this.Active.Value = DbConvert.ToBool(dr, "Active"); this.IsLiveBet.Value = DbConvert.ToBool(dr, "IsLiveBet"); this.SourceType = (eServerSourceType)DbConvert.ToInt32(dr, "SourceType"); this.outright_type = (eOutrightType)DbConvert.ToInt32(dr, "outright_type"); this.NameTag.Value = DbConvert.ToString(dr, "NameTag"); this.TeamWon.Value = DbConvert.ToString(dr, "TeamWon"); this.ExtendedState.Value = DbConvert.ToString(dr, "ExtendedState"); EnsureExternalObjects(); }