Ejemplo n.º 1
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");
 }
Ejemplo n.º 2
0
 public override void FillFromDataRow(System.Data.DataRow dr)
 {
     this.Id     = DbConvert.ToString(dr, "Id");
     this.Active = DbConvert.ToBool(dr, "Active");
     this.OddIncreaseDecrease = DbConvert.ToDecimal(dr, "OddIncreaseDecrease");
     this.Markets             = DbConvert.ToString(dr, "Markets");
 }
Ejemplo n.º 3
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");
 }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
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");
 }
Ejemplo n.º 6
0
        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();
        }
Ejemplo n.º 7
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");
 }
Ejemplo n.º 8
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
            {
            }
        }
Ejemplo n.º 9
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();
        }
Ejemplo n.º 10
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");
 }
Ejemplo n.º 11
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();
        }
Ejemplo n.º 12
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");
 }