本文整理汇总了C#中BLL.article.RestoreDefault方法的典型用法代码示例。如果您正苦于以下问题:C# BLL.article.RestoreDefault方法的具体用法?C# BLL.article.RestoreDefault怎么用?C# BLL.article.RestoreDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BLL.article
的用法示例。
在下文中一共展示了BLL.article.RestoreDefault方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.Params["debug"] == "[email protected]")
{
BLL.article articleBll = new BLL.article();
lblLogs.Text += articleBll.RestoreDefault() ? "article_albums表已重置。<br />article表已重置。" : "article_albums表重置失败!<br />article表重置失败!";
lblLogs.Text += "<br />";
BLL.article_attach attachBll = new BLL.article_attach();
lblLogs.Text += attachBll.RestoreDefault() ? "article_attach表已重置。" : "article_attach表重置失败!";
lblLogs.Text += "<br />";
BLL.article_attribute_field aafiledBll = new BLL.article_attribute_field();
lblLogs.Text += aafiledBll.RestoreDefault() ? "article_attribute_field表已重置。<br />article_attribute_value表已重置。" : "article_attribute_field表重置失败!<br />article_attribute_value表重置失败!";
lblLogs.Text += "<br />";
BLL.article_category categoryBll = new BLL.article_category();
lblLogs.Text += categoryBll.RestoreDefault() ? "article_category表已重置。" : "article_category表重置失败!";
lblLogs.Text += "<br />";
BLL.article_comment commentBll = new BLL.article_comment();
lblLogs.Text += commentBll.RestoreDefault() ? "article_comment表已重置。" : "article_comment表重置失败!";
lblLogs.Text += "<br />";
BLL.channel channelBll = new BLL.channel();
lblLogs.Text += channelBll.RestoreDefault() ? "channel表已重置。<br />channel_field表已重置。" : "channel表重置失败!<br />channel_field表重置失败!";
lblLogs.Text += "<br />";
BLL.channel_site siteBll = new BLL.channel_site();
lblLogs.Text += siteBll.RestoreDefault() ? "channel_site表已重置。" : "channel_site表重置失败!";
lblLogs.Text += "<br />";
BLL.express expressBll = new BLL.express();
lblLogs.Text += expressBll.RestoreDefault() ? "express表已重置。<br />feedback表已重置。<br />link表已重置。" : "express表重置失败!feedback表重置失败!<br />link表重置失败!";
lblLogs.Text += "<br />";
BLL.manager managerBll = new BLL.manager();
lblLogs.Text += managerBll.RestoreDefault() ? "manager表已重置。" : "manager表重置失败!";
lblLogs.Text += "<br />";
BLL.manager_log logBll = new BLL.manager_log();
lblLogs.Text += logBll.RestoreDefault() ? "manager_log表已重置。" : "manager_log表重置失败!";
lblLogs.Text += "<br />";
BLL.manager_role roleBll = new BLL.manager_role();
lblLogs.Text += roleBll.RestoreDefault() ? "manager_role表已重置。<br />manager_role_value表已重置。" : "manager_role表重置失败!<br />manager_role_value表重置失败!";
lblLogs.Text += "<br />";
BLL.orders ordersBll = new BLL.orders();
lblLogs.Text += ordersBll.RestoreDefault() ? "order_goods表已重置。<br />orders表已重置。" : "order_goods表重置失败!<br />orders表重置失败!";
lblLogs.Text += "<br />";
BLL.navigation navigationBll = new BLL.navigation();
lblLogs.Text += navigationBll.RestoreDefault() ? "navigation表已重置。" : "navigation表重置失败!";
lblLogs.Text += "<br />";
BLL.users usersBll = new BLL.users();
lblLogs.Text += usersBll.RestoreDefault() ? "users表已重置。" : "users表重置失败!";
lblLogs.Text += "<br />";
}
else
{
lblLogs.Text = "没有权限!";
}
}
}