本文整理汇总了C#中IDataProvider.UpdateDatabaseImage方法的典型用法代码示例。如果您正苦于以下问题:C# IDataProvider.UpdateDatabaseImage方法的具体用法?C# IDataProvider.UpdateDatabaseImage怎么用?C# IDataProvider.UpdateDatabaseImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataProvider
的用法示例。
在下文中一共展示了IDataProvider.UpdateDatabaseImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
public void Initialize(NodeTreeCmsSettings settings)
{
// Control settings
if (settings == null) settings = new NodeTreeCmsSettings();
if (String.IsNullOrEmpty(settings.DbPath))
settings.DbPath = System.Web.HttpContext.Current.Server.MapPath("~/App_Data/Cms");
if (String.IsNullOrEmpty(settings.AdminUrl))
settings.AdminUrl="/admin";
if (!settings.AdminUrl.StartsWith("/")) settings.AdminUrl = "/" + settings.AdminUrl;
if (String.IsNullOrEmpty(settings.DefaultViewPath))
settings.DefaultViewPath = "Default.cshtml";
//if (String.IsNullOrEmpty(settings.ContentRootUrl))
// settings.ContentRootUrl = "/";
this.settings = settings;
var path = settings.DbPath;
dbProvider = new LiveDbProvider(path);
nodeTree = dbProvider.DocumentNode_NodeTree();
if (nodeTree == null)
InitializeDocumentNodes();
dbProvider.UpdateDatabaseImage();
}