当前位置: 首页>>代码示例>>C#>>正文


C# ItemLoadHandler类代码示例

本文整理汇总了C#中ItemLoadHandler的典型用法代码示例。如果您正苦于以下问题:C# ItemLoadHandler类的具体用法?C# ItemLoadHandler怎么用?C# ItemLoadHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ItemLoadHandler类属于命名空间,在下文中一共展示了ItemLoadHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PrimitiveApplicationInfo

        public PrimitiveApplicationInfo(Core core, Primitive owner, long applicationId)
            : base(core)
        {
            this.owner = owner;
            ItemLoad += new ItemLoadHandler(PrimitiveApplicationInfo_ItemLoad);

            SelectQuery query = new SelectQuery(PrimitiveApplicationInfo.GetTable(typeof(PrimitiveApplicationInfo)));
            query.AddFields(PrimitiveApplicationInfo.GetFieldsPrefixed(core, typeof(PrimitiveApplicationInfo)));
            query.AddCondition("application_id", applicationId);
            query.AddCondition("item_id", owner.Id);
            query.AddCondition("item_type_id", owner.TypeId);

            DataTable appDataTable = db.Query(query);

            if (appDataTable.Rows.Count == 1)
            {
                DataRow appRow = appDataTable.Rows[0];
                try
                {
                    loadItemInfo(appRow);
                }
                catch (InvalidItemException)
                {
                    throw new InvalidPrimitiveAppInfoException();
                }
            }
            else
            {
                throw new InvalidPrimitiveAppInfoException();
            }
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:31,代码来源:PrimitiveApplicationInfo.cs

示例2: EventEmailInvite

        public EventEmailInvite(Core core, DataRow eventInviteDataRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(EventEmailInvite_ItemLoad);

            loadItemInfo(eventInviteDataRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:EventEmailInvite.cs

示例3: InviteKey

        public InviteKey(Core core, DataRow inviteRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(InviteKey_ItemLoad);

            loadItemInfo(inviteRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:InviteKey.cs

示例4: RateLimit

        public RateLimit(Core core, System.Data.Common.DbDataReader rateLimitRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(RateLimit_ItemLoad);

            loadItemInfo(rateLimitRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:RateLimit.cs

示例5: GroupOperator

        internal GroupOperator(Core core, DataRow operatorRow)
            : base(core, operatorRow)
        {
            ItemLoad += new ItemLoadHandler(GroupOperator_ItemLoad);

            loadItemInfo(operatorRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:GroupOperator.cs

示例6: ActionItem

        public ActionItem(Core core, long actionId, long itemId, long itemTypeId)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(ActionItem_ItemLoad);

            SelectQuery query = ActionItem.GetSelectQueryStub(core, typeof(ActionItem));
            query.AddCondition("action_id", actionId);
            query.AddCondition("item_id", itemId);
            query.AddCondition("item_type_id", itemTypeId);

            System.Data.Common.DbDataReader actionReader = db.ReaderQuery(query);

            if (actionReader.HasRows)
            {
                actionReader.Read();

                loadItemInfo(actionReader);

                actionReader.Close();
                actionReader.Dispose();
            }
            else
            {
                actionReader.Close();
                actionReader.Dispose();

                throw new InvalidActionItemException();
            }
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:29,代码来源:ActionItem.cs

示例7: Calendar

        public Calendar(Core core, Primitive owner)
            : base(core)
        {
            if (core == null)
            {
                throw new NullCoreException();
            }

            if (owner == null)
            {
                throw new InvalidUserException();
            }

            this.owner = owner;
            ItemLoad += new ItemLoadHandler(Calendar_ItemLoad);

            try
            {
                LoadItem("calendar_item_id", "calendar_item_type_id", owner);
            }
            catch (InvalidItemException)
            {
                throw new InvalidCalendarException();
            }
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:25,代码来源:Calendar.cs

示例8: GuestBookCommentCount

        public GuestBookCommentCount(Core core, DataRow countRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(GuestBookCommentCount_ItemLoad);

            loadItemInfo(countRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:GuestBookCommentCount.cs

示例9: ApplicationError

        public ApplicationError(Core core, System.Data.Common.DbDataReader errorRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(ApplicationError_ItemLoad);

            loadItemInfo(errorRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:ApplicationError.cs

示例10: Category

        public Category(Core core, DataRow categoryRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(Category_ItemLoad);

            loadItemInfo(categoryRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:Category.cs

示例11: SpamReport

        public SpamReport(Core core, DataRow reportRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(SpamReport_ItemLoad);

            loadItemInfo(reportRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:SpamReport.cs

示例12: HelpTopic

        public HelpTopic(Core core, DataRow helpRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(HelpTopic_ItemLoad);

            loadItemInfo(helpRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:HelpTopic.cs

示例13: ReferralKey

        public ReferralKey(Core core, DataRow referralRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(ReferralKey_ItemLoad);

            loadItemInfo(referralRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:ReferralKey.cs

示例14: ItemViewCountByHour

        public ItemViewCountByHour(Core core, DataRow viewRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(ItemViewCountByHour_ItemLoad);

            loadItemInfo(viewRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:ItemViewCountByHour.cs

示例15: ItemHashtag

        public ItemHashtag(Core core, DataRow itemHashtagRow)
            : base(core)
        {
            ItemLoad += new ItemLoadHandler(ItemHashtag_ItemLoad);

            loadItemInfo(itemHashtagRow);
        }
开发者ID:smithydll,项目名称:boxsocial,代码行数:7,代码来源:ItemHashtag.cs


注:本文中的ItemLoadHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。