2017年1月26日 星期四

angular 2 startup in visual studio 2015

blog: https://www.infopulse.com/blog/using-angular-2-in-visual-studio-2015-tutorial/
github: https://github.com/Drag13/MvcWithAngular2

標籤:

2017年1月17日 星期二

nuget command 工具

參考資料: http://stackoverflow.com/questions/30933277/how-to-clear-nuget-package-cache-using-command-line

download: https://dist.nuget.org/win-x86-commandline/latest/nuget.exe

Next, open a command prompt and cd to the directory to which nuget.exe was downloaded.
You can list the local caches with this command:
nuget locals all -list
You can clear all caches with this command:
nuget locals all -clear

標籤:

2017年1月15日 星期日

umbraco 刪除版本紀錄

DECLARE @createdDate Datetime = '2012-03-01'

DELETE FROM cmsPropertyData WHERE
    versionId NOT IN (SELECT versionId FROM cmsDocument WHERE updateDate > @createdDate OR published = 1 OR newest = 1) AND
    contentNodeId IN (SELECT DISTINCT nodeID FROM cmsDocument)
DELETE FROM cmsPreviewXml WHERE
    versionId NOT IN (SELECT versionId FROM cmsDocument WHERE updateDate > @createdDate OR published = 1 OR newest = 1) AND
    nodeId IN (SELECT DISTINCT nodeID FROM cmsDocument)
DELETE FROM cmsContentVersion WHERE
    versionId NOT IN (SELECT versionId FROM cmsDocument WHERE updateDate > @createdDate OR published = 1 OR newest = 1) AND
    ContentId  IN (SELECT DISTINCT nodeID FROM cmsDocument)
DELETE FROM cmsDocument WHERE
    versionId NOT IN (SELECT versionId FROM cmsDocument WHERE updateDate > @createdDate OR published = 1 OR newest = 1) AND
    nodeId IN (SELECT DISTINCT nodeID FROM cmsDocument)

標籤: ,