Umbraco .Net 命名空间有任何意义或组织吗?
Umbraco 有多种命名空间,但它们看起来组织混乱且复杂。
例如,
umbraco.businesslogic
和
umbraco.cms.businesslogic
之间有什么区别?它们的组织方式背后是否有什么隐藏的东西?
Umbraco has a variety of namespaces, however, they seem ill-organised and complicated.
For instance, what's the difference between
umbraco.businesslogic
and
umbraco.cms.businesslogic
Is there anything behind the way they're organised?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我的脑海中,
umbraco.businesslogic = 整个应用程序的业务逻辑
,而
的业务逻辑,就像 umbraco.businesslogic 的门面一样,带有授权等。
umbraco.cms.businesslogic = 为 umbraco 后端管理部分提供动力 你想一想,这是有道理的,因为与应用程序呈现的实际站点相比,管理部分要复杂得多(只是对 xml/db 进行 url 重写查找并组合一堆 xslt/controls/masterpages/contents /ETC)。
Off the top of my head,
umbraco.businesslogic = business logic for the whole application
while
umbraco.cms.businesslogic = business logic powering the umbraco backend admin section, acting like a facade to the umbraco.businesslogic with authorization, etc thrown in.
When you think about it, it makes sense because of how much more complicated the administration section is, compared to the actual site the application present (Just a url rewrite lookup against the xml/db and combining a bunch of xslt/controls/masterpages/contents/etc).