public override void FillFromDataRow(DataRow dr) { this.MatchId = DbConvert.ToInt64(dr, "MatchId"); this.GroupId = DbConvert.ToInt64(dr, "GroupId"); this.Type = DbConvert.ToString(dr, "Type"); this.Sort = DbConvert.ToInt32(dr, "Sort"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateId"); }
public override void FillFromDataRow(DataRow dr) { this.CategoryID = DbConvert.ToInt64(dr, "CategoryID"); this.SvrCategoryID = DbConvert.ToInt64(dr, "SvrCategoryID"); this.MultiStringID = DbConvert.ToInt64(dr, "MultiStringID"); this.DefaultName = DbConvert.ToString(dr, "DefaultName"); this.Sort = DbConvert.ToInt32(dr, "Sort"); this.LastModified = DbConvert.ToDateTime(dr, "LastModified"); }
public override void FillFromDataRow(DataRow dr) { this.match2competitorid = DbConvert.ToInt64(dr, "competitor_to_outright_id"); this.CompetitorId = DbConvert.ToInt64(dr, "competitor_id"); this.MatchId = DbConvert.ToInt64(dr, "match_id"); this.hometeam = DbConvert.ToInt64(dr, "position"); this.ExtendedId = DbConvert.ToInt32(dr, "extended_id"); this.ExtendedState = DbConvert.ToString(dr, "extended_state"); this.UpdateId = DbConvert.ToInt64(dr, "update_id"); }
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(DataRow dr) { this.LanguageID = DbConvert.ToInt64(dr, "LanguageID"); this.ShortName = DbConvert.ToString(dr, "ShortName"); this.MultiStringID = DbConvert.ToInt64(dr, "MultiStringID"); this.Priority = DbConvert.ToNullableInt32(dr, "Priority"); this.LastModified = DbConvert.ToDateTime(dr, "LastModified"); this.SvrLanguageId = DbConvert.ToInt64(dr, "SvrLanguageId"); this.IsTerminalLanguage = DbConvert.ToInt32(dr, "IsTerminalLanguage"); }
/// <summary> /// 读取可空4字节整型值 /// </summary> /// <param name="row">数据行</param> /// <param name="columns">列集合</param> /// <param name="columnName">列名称</param> /// <returns>4字节整型结果</returns> protected Int32?LoadNullableInt32(DataRow row, DataColumnCollection columns, String columnName) { if (columns.Contains(columnName) && !Convert.IsDBNull(row[columnName])) { return(DbConvert.ToInt32(row[columnName])); } else { return(null); } }
/// <summary> /// 读取可空4字节整型值 /// </summary> /// <param name="args">对象创建参数</param> /// <param name="columnName">列名称</param> /// <returns>4字节整型结果</returns> protected Int32?LoadNullableInt32(EntityCreatingArgs args, String columnName) { if (args.Columns.Contains(columnName) && !DbConvert.IsDBNull(args.Row[columnName])) { return(DbConvert.ToInt32(args.Row[columnName])); } else { return(null); } }
public override void FillFromDataRow(DataRow dr) { this.GroupId = DbConvert.ToInt64(dr, "GroupId"); this.ParentGroupId.Value = DbConvert.ToNullableInt64(dr, "ParentGroupId"); this.SvrGroupId = DbConvert.ToInt64(dr, "SvrGroupId"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateId"); this.Type = DbConvert.ToString(dr, "Type"); this.Sort.Value = DbConvert.ToInt32(dr, "Sort"); this.Active.Value = DbConvert.ToBool(dr, "Active"); this.ExternalState = DbConvert.ToString(dr, "ExternalState"); EnsureExternalObjects(); }
private int GetNumberOfCheckpoints() { string sQuery = string.Format("SELECT Count(*) FROM StationCash WHERE StationCash.CashCheckpoint=1"); int count = 0; using (DataTable dt = DataCopy.GetDataTable(sQuery)) { foreach (DataRow dr in dt.Rows) { count = DbConvert.ToInt32(dr, "count"); } } return(count); }
public override void FillFromDataRow(System.Data.DataRow dr) { this.OutcomeId = DbConvert.ToInt64(dr, "OutcomeId"); this.OddId.Value = DbConvert.ToInt64(dr, "OddId"); this.BetDomainId = DbConvert.ToInt64(dr, "BetDomainId"); this.Value.Value = DbConvert.ToDecimal(dr, "Value"); this.NameTag.Value = DbConvert.ToString(dr, "NameTag"); this.OddTag.Value = DbConvert.ToString(dr, "OddTag"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateId"); this.Sort.Value = DbConvert.ToInt32(dr, "Sort"); this.Active.Value = DbConvert.ToBool(dr, "Active"); this.IsLiveBet.Value = DbConvert.ToBool(dr, "IsLiveBet"); this.ExtendedState.Value = DbConvert.ToString(dr, "ExtendedState"); this.IsManuallyDisabled.Value = DbConvert.ToBool(dr, "IsManuallyDisabled"); }
public override void FillFromDataRow(DataRow dr) { this.Tag = DbConvert.ToString(dr, "tag"); this.MappingCode = DbConvert.ToInt32(dr, "mapping_code"); this.Name = DbConvert.ToString(dr, "name"); this.BetTypeTag = DbConvert.ToString(dr, "bet_type"); this.ScoreTypeTag = DbConvert.ToString(dr, "score_type"); this.TimeTypeTag = DbConvert.ToString(dr, "time_type"); this.Sort = DbConvert.ToInt32(dr, "sort"); this.Active = DbConvert.ToBool(dr, "active"); this.ExternalState = DbConvert.ToString(dr, "external_state"); Debug.Assert(!string.IsNullOrEmpty(this.ExternalState)); EnsureExternalObjects(); }
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(DataRow dr) { this.OddID = DbConvert.ToInt64(dr, "OddID"); this.SvrOddID = DbConvert.ToInt64(dr, "SvrOddID"); this.Value = DbConvert.ToDecimal(dr, "Value"); this.ScanCode = DbConvert.ToString(dr, "ScanCode"); this.Calculated = DbConvert.ToBool(dr, "Calculated"); this.Won = DbConvert.ToBool(dr, "Won"); this.Sort = DbConvert.ToInt32(dr, "Sort"); this.UserID = DbConvert.ToInt64(dr, "UserID"); this.MultiStringID = DbConvert.ToInt64(dr, "MultiStringID"); this.OddTag = DbConvert.ToString(dr, "OddTag"); this.MultiStringID2 = DbConvert.ToInt64(dr, "MultiStringID2"); this.BetDomainID = DbConvert.ToInt64(dr, "BetDomainID"); this.Active = DbConvert.ToBool(dr, "Active"); this.LastModified = DbConvert.ToDateTime(dr, "LastModified"); this.IsLiveBet = DbConvert.ToBool(dr, "IsLiveBet"); this.Status = DbConvert.ToInt32(dr, "Status"); this.IsLocked = DbConvert.ToBool(dr, "IsLocked"); }
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(); }
public override void FillFromDataRow(DataRow dr) { this.TournamentID = DbConvert.ToInt64(dr, "TournamentID"); this.SvrTournamentID = DbConvert.ToInt64(dr, "SvrTournamentID"); this.DefaultName = DbConvert.ToString(dr, "DefaultName"); this.BtrTournamentID = DbConvert.ToNullableInt64(dr, "BtrTournamentID"); this.MultiStringID = DbConvert.ToInt64(dr, "MultiStringID"); this.SportID = DbConvert.ToInt64(dr, "SportID"); this.CategoryID = DbConvert.ToNullableInt64(dr, "CategoryID"); this.MaxStakeLigaLimit = DbConvert.ToNullableDecimal(dr, "MaxStakeLigaLimit"); this.MaxStakeTipLimit = DbConvert.ToNullableDecimal(dr, "MaxStakeTipLimit"); this.MinCombination = DbConvert.ToNullableInt32(dr, "MinCombination"); this.Active = DbConvert.ToBool(dr, "Active"); this.LastModified = DbConvert.ToDateTime(dr, "LastModified"); this.TennisSet = DbConvert.ToNullableInt32(dr, "TennisSets"); this.ShowOnOddSheet = DbConvert.ToBool(dr, "ShowOnOddSheet"); this.Info = DbConvert.ToString(dr, "Info"); this.OutrightType = DbConvert.ToInt32(dr, "OutrightTyp"); this.Sort = DbConvert.ToInt32(dr, "Sort"); this.IsLiveBet = DbConvert.ToBool(dr, "IsLiveBet"); this.IsLocked = DbConvert.ToBool(dr, "IsLocked"); this.LockWithAllOtherTournaments = DbConvert.ToBool(dr, "LockWithAllOtherTournaments"); }
public override void FillFromDataRow(DataRow dr) { this.BetDomainId = DbConvert.ToInt64(dr, "BetDomainId"); this.BtrLiveBetId.Value = DbConvert.ToInt64(dr, "BtrLiveBetId"); this.MatchId = DbConvert.ToInt64(dr, "MatchId"); this.UpdateId = DbConvert.ToInt64(dr, "UpdateId"); string sStatus = DbConvert.ToString(dr, "Status"); this.Status.Value = (eBetDomainStatus)Enum.Parse(typeof(eBetDomainStatus), sStatus, true); this.BetTag = DbConvert.ToString(dr, "BetTag"); this.BetDomainNumber.Value = DbConvert.ToInt32(dr, "BetDomainNumber"); this.NameTag = DbConvert.ToString(dr, "NameTag"); this.Sort.Value = DbConvert.ToInt32(dr, "Sort"); this.IsLiveBet.Value = DbConvert.ToBool(dr, "IsLiveBet"); this.SpecialOddValue.Value = DbConvert.ToString(dr, "SpecialOddValue"); this.SpecialOddValueFull.Value = DbConvert.ToString(dr, "SpecialOddValueFull"); this.Result.Value = DbConvert.ToString(dr, "Result"); this.ExtendedState = DbConvert.ToString(dr, "ExtendedState"); this.IsManuallyDisabled.Value = DbConvert.ToBool(dr, "IsManuallyDisabled"); EnsureExternalObjects(); }
public override void FillFromDataRow(DataRow dr) { this.TournamentLockID = DbConvert.ToInt64(dr, "TournamentLockID"); this.TournamentID = DbConvert.ToInt64(dr, "TournamentID"); this.ToLockID = DbConvert.ToInt32(dr, "ToLockID"); }