本文整理汇总了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();
}
}
示例2: EventEmailInvite
public EventEmailInvite(Core core, DataRow eventInviteDataRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(EventEmailInvite_ItemLoad);
loadItemInfo(eventInviteDataRow);
}
示例3: InviteKey
public InviteKey(Core core, DataRow inviteRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(InviteKey_ItemLoad);
loadItemInfo(inviteRow);
}
示例4: RateLimit
public RateLimit(Core core, System.Data.Common.DbDataReader rateLimitRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(RateLimit_ItemLoad);
loadItemInfo(rateLimitRow);
}
示例5: GroupOperator
internal GroupOperator(Core core, DataRow operatorRow)
: base(core, operatorRow)
{
ItemLoad += new ItemLoadHandler(GroupOperator_ItemLoad);
loadItemInfo(operatorRow);
}
示例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();
}
}
示例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();
}
}
示例8: GuestBookCommentCount
public GuestBookCommentCount(Core core, DataRow countRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(GuestBookCommentCount_ItemLoad);
loadItemInfo(countRow);
}
示例9: ApplicationError
public ApplicationError(Core core, System.Data.Common.DbDataReader errorRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(ApplicationError_ItemLoad);
loadItemInfo(errorRow);
}
示例10: Category
public Category(Core core, DataRow categoryRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(Category_ItemLoad);
loadItemInfo(categoryRow);
}
示例11: SpamReport
public SpamReport(Core core, DataRow reportRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(SpamReport_ItemLoad);
loadItemInfo(reportRow);
}
示例12: HelpTopic
public HelpTopic(Core core, DataRow helpRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(HelpTopic_ItemLoad);
loadItemInfo(helpRow);
}
示例13: ReferralKey
public ReferralKey(Core core, DataRow referralRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(ReferralKey_ItemLoad);
loadItemInfo(referralRow);
}
示例14: ItemViewCountByHour
public ItemViewCountByHour(Core core, DataRow viewRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(ItemViewCountByHour_ItemLoad);
loadItemInfo(viewRow);
}
示例15: ItemHashtag
public ItemHashtag(Core core, DataRow itemHashtagRow)
: base(core)
{
ItemLoad += new ItemLoadHandler(ItemHashtag_ItemLoad);
loadItemInfo(itemHashtagRow);
}