摘要: 理解内容处理器A content handler defines what happens with a content part in response to specific events, such as when the part is activated. The content handler enables you to perform actions at particular moments in the lifecycle of the content item. It also enables you to set up data repositories and man 阅读全文
posted @ 2013-05-31 10:09 飞翔的天空 阅读(412) 评论(1) 推荐(0) 编辑
摘要: 数据访问在orchard 项目中与传统的web应用程序不一样,因为数据的建模是通过代码而不是数据库管理系统。你用代码定义数据属性,orchard 框架建立数据组件来保存数据。如果您需要更改数据结构,你写代码来指定变化,这些变化会通过代码传播到数据库系统。这个代码为核心的模式包括抽象层,允许你在不同的内容类型(content type)中重用这些组件,添加或更改行为而不破坏其他层。数据访问的关键概念如下:记录(Records)数据迁移(Data migrations)内容处理器(Content handlers)内容驱动器(Content drivers)记录(Records) 一个记录 是一个 阅读全文
posted @ 2013-05-31 09:58 飞翔的天空 阅读(1804) 评论(0) 推荐(0) 编辑