예제 #1
0
 public override void FillFromDataRow(System.Data.DataRow dr)
 {
     this.ResourceId   = DbConvert.ToInt64(dr, "ResourceId");
     this.ResourceType = (eResourceType)Enum.Parse(typeof(eResourceType), DbConvert.ToString(dr, "ResourceType"));
     this.MimeType     = DbConvert.ToString(dr, "MimeType");
     this.Data         = DbConvert.ToString(dr, "Data");
 }
예제 #2
0
 public override void FillFromDataRow(System.Data.DataRow dr)
 {
     this.ResourceId   = DbConvert.ToInt64(dr, "ResourceId");
     this.ResourceType = (eAssignmentType)Enum.Parse(typeof(eAssignmentType), DbConvert.ToString(dr, "ObjectClass"));
     this.ObjectId     = DbConvert.ToInt64(dr, "ObjectId");
     this.Active       = DbConvert.ToBool(dr, "Active");
 }
예제 #3
0
        public const string BETDOMAIN_MULTISTRING_GROUP      = "BETDOMAIN_MSG";    // BetDomain

        public override void FillFromDataRow(DataRow dr)
        {
            this.MultiStringGroupID    = DbConvert.ToInt64(dr, "MultiStringGroupID");
            this.MultiStringGroupTag   = DbConvert.ToString(dr, "MultiStringGroupTag");
            this.Comment               = DbConvert.ToString(dr, "Comment");
            this.LastModified          = DbConvert.ToDateTime(dr, "LastModified");
            this.SvrMultiStringGroupID = DbConvert.ToInt64(dr, "SvrMultiStringGroupID");
        }
예제 #4
0
 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");
 }
예제 #5
0
        public override void FillFromDataRow(System.Data.DataRow dr)
        {
            this.TournamentInfoId = DbConvert.ToInt64(dr, "tournamentinfoid");
            this.LastModified     = DbConvert.ToDateTime(dr, "LastModified");

            TournamentInfosValuesExternalState obj = LineSerializeHelper.StringToObject <TournamentInfosValuesExternalState>(DbConvert.ToString(dr, "external_state"));

            this.external_state.CompetitorsContainer = obj.CompetitorsContainer;
        }
예제 #6
0
        public override void FillFromDataRow(System.Data.DataRow dr)
        {
            this.MatchInfoId  = DbConvert.ToInt64(dr, "matchinfoid");
            this.LastModified = DbConvert.ToDateTime(dr, "LastModified");

            MatchInfosValuesExternalState obj = LineSerializeHelper.StringToObject <MatchInfosValuesExternalState>(DbConvert.ToString(dr, "external_state"));

            this.external_state.StatisticValues = obj.StatisticValues;
        }
예제 #7
0
 public override void FillFromDataRow(DataRow dr)
 {
     this.SportID       = DbConvert.ToInt64(dr, "SportID");
     this.SvrSportID    = DbConvert.ToInt64(dr, "SvrSportID");
     this.BtrSportID    = DbConvert.ToNullableInt64(dr, "BtrSportID");
     this.DefaultName   = DbConvert.ToString(dr, "DefaultName");
     this.MultiStringID = DbConvert.ToInt64(dr, "MultiStringID");
     this.LastModified  = DbConvert.ToDateTime(dr, "LastModified");
 }
예제 #8
0
 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");
 }
예제 #9
0
 public override void FillFromDataRow(DataRow dr)
 {
     this.LanguageStringID    = DbConvert.ToInt64(dr, "LanguageStringId");
     this.Text                = DbConvert.ToString(dr, "Text");
     this.MultiStringID       = DbConvert.ToInt64(dr, "MultiStringID");
     this.LanguageID          = DbConvert.ToInt64(dr, "LanguageID");
     this.LastModified        = DbConvert.ToDateTime(dr, "LastModified");
     this.SvrLanguageStringID = DbConvert.ToInt64(dr, "SvrLanguageStringID");
     this.IsLiveBet           = DbConvert.ToBool(dr, "IsLiveBet");
 }
예제 #10
0
 public override void FillFromDataRow(DataRow dr)
 {
     this.StringId = DbConvert.ToInt64(dr, "string_id");
     this.Category = DbConvert.ToString(dr, "category");
     this.Tag      = DbConvert.ToString(dr, "tag");
     this.Language = DbConvert.ToString(dr, "language");
     this.UpdateId = DbConvert.ToInt64(dr, "update_id");
     this.ObjectId = DbConvert.ToNullableInt64(dr, "object_id");
     this.Text     = DbConvert.ToString(dr, "Text");
 }
예제 #11
0
        public override void FillFromDataRow(DataRow dr)
        {
            this.CompetitorId    = DbConvert.ToInt64(dr, "CompetitorId");
            this.BtrCompetitorId = DbConvert.ToInt64(dr, "BtrCompetitorId");
            this.UpdateId        = DbConvert.ToInt64(dr, "UpdateId");
            this.ExternalState   = DbConvert.ToString(dr, "ExternalState");
            this.Base64Image     = DbConvert.ToString(dr, "Base64Image");

            EnsureExternalObjects();
        }
예제 #12
0
 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");
 }
예제 #13
0
 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");
 }
예제 #14
0
 public override void FillFromDataRow(DataRow dr)
 {
     this.UpdateFileID = DbConvert.ToInt64(dr, "UpdateFileID");
     //this.UpdateId = DbConvert.ToInt64(dr, "UpdateId");
     this.DataSyncCacheID   = DbConvert.ToInt64(dr, "DataSyncCacheID");
     this.DataSyncCacheType = DbConvert.ToString(dr, "DataSyncCacheType");
     this.FileName          = DbConvert.ToString(dr, "FileName");
     this.Description       = DbConvert.ToString(dr, "Description");
     this.CreateDate        = DbConvert.ToDateTime(dr, "CreateDate");
 }
 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");
 }
 /// <summary>
 /// 读取可空8字节整型值
 /// </summary>
 /// <param name="args">对象创建参数</param>
 /// <param name="columnName">列名称</param>
 /// <returns>8字节整型结果</returns>
 protected Int64?LoadNullableInt64(EntityCreatingArgs args, String columnName)
 {
     if (args.Columns.Contains(columnName) && !DbConvert.IsDBNull(args.Row[columnName]))
     {
         return(DbConvert.ToInt64(args.Row[columnName]));
     }
     else
     {
         return(null);
     }
 }
 /// <summary>
 /// 读取可空8字节整型值
 /// </summary>
 /// <param name="row">数据行</param>
 /// <param name="columns">列集合</param>
 /// <param name="columnName">列名称</param>
 /// <returns>8字节整型结果</returns>
 protected Int64?LoadNullableInt64(DataRow row, DataColumnCollection columns, String columnName)
 {
     if (columns.Contains(columnName) && !Convert.IsDBNull(row[columnName]))
     {
         return(DbConvert.ToInt64(row[columnName]));
     }
     else
     {
         return(null);
     }
 }
예제 #18
0
        public override void FillFromDataRow(DataRow dr)
        {
            this.UpdateId = DbConvert.ToInt64(dr, "UpdateId");
            this.Modified = DbConvert.ToDateTime(dr, "Modified");

            string sUpdateType = DbConvert.ToString(dr, "UpdateType");

            this.UpdateType = (eUpdateType)Enum.Parse(typeof(eUpdateType), sUpdateType, true);

            this.Description         = DbConvert.ToString(dr, "Description");
            this.ProviderDescription = DbConvert.ToString(dr, "ProviderDescription");
            //this.ProviderTag = DbConvert.ToString(dr, "ProviderTag");
        }
예제 #19
0
        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();
        }
예제 #20
0
        public override void FillFromDataRow(System.Data.DataRow dr)
        {
            this.SuperBtrId       = DbConvert.ToInt64(dr, "SuperBtrId");
            this.CompetitorInfoId = DbConvert.ToInt64(dr, "CompetitorInfoId");

            this.LastModified = DbConvert.ToDateTime(dr, "LastModified");
            this.TshirtAway   = DbConvert.ToString(dr, "TshirtAway");
            this.TshirtHome   = DbConvert.ToString(dr, "TshirtHome");

            CompetitorInfosValuesExternalState obj = LineSerializeHelper.StringToObject <CompetitorInfosValuesExternalState>(DbConvert.ToString(dr, "external_state"));

            this.external_state.StatisticValues = obj.StatisticValues;
        }
예제 #21
0
 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");
 }
예제 #22
0
 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");
 }
예제 #23
0
 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");
 }
예제 #24
0
        public override void FillFromDataRow(DataRow dr)
        {
            this.CompetitorID    = DbConvert.ToInt64(dr, "CompetitorID");
            this.SvrCompetitorID = DbConvert.ToInt64(dr, "SvrCompetitorID");
            this.BtrCompetitorID = DbConvert.ToNullableInt64(dr, "BtrCompetitorID");
            this.IsLiveBet       = DbConvert.ToBool(dr, "IsLiveBet");
            this.DefaultName     = DbConvert.ToString(dr, "DefaultName");
            this.SportID         = DbConvert.ToNullableInt64(dr, "SportID");
            this.MultiStringID   = DbConvert.ToInt64(dr, "MultiStringID");
            this.CountryID       = DbConvert.ToNullableInt64(dr, "CountryID");
            this.LastModified    = DbConvert.ToDateTime(dr, "LastModified");

            try
            {
                this.BtrCompetitorID = DbConvert.ToInt64(dr, "BtrCompetitorID");
            }
            catch
            {
            }
        }
예제 #25
0
        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();
        }
예제 #26
0
 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");
 }
예제 #27
0
        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();
        }
예제 #28
0
 public override void FillFromDataRow(System.Data.DataRow dr)
 {
     this.LanguageId = DbConvert.ToInt64(dr, "languageid");
     this.ShortName  = DbConvert.ToString(dr, "shortname");
     this.IsTerminal = DbConvert.ToBool(dr, "isterminal");
 }
예제 #29
0
 public override void FillFromDataRow(System.Data.DataRow dr)
 {
     this.MultiStringGroupId  = DbConvert.ToInt64(dr, "MultiStringGroupID");
     this.MultiStringGroupTag = DbConvert.ToString(dr, "MultiStringGroupTag");
 }
예제 #30
0
 public override void FillFromDataRow(DataRow dr)
 {
     this.TournamentLockID = DbConvert.ToInt64(dr, "TournamentLockID");
     this.TournamentID     = DbConvert.ToInt64(dr, "TournamentID");
     this.ToLockID         = DbConvert.ToInt32(dr, "ToLockID");
 }