在EPiServer 7中,我遇到了兩個不同的接口來獲取EPiServer存儲庫 - IContentRepository和IContentLoader。EPiServer中的IContentRepository與IContentLoader
例子:
var repo = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<IContentRepository>();
和:
var repo = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<IContentLoader>();
有人能向我解釋什麼時候在前面的其他使用嗎? 在此先感謝。
Thx @ChrisRun。這肯定澄清它:) – ElC