【问题标题】:Where are ContentItem.Parts.Fields values stored?ContentItem.Parts.Fields 值存储在哪里?
【发布时间】:2014-06-11 18:39:38
【问题描述】:

给定这样的代码:

IContent part = ....; // some part object like IUser
var fieldValues = part.ContentItem.Parts
   .SelectMany(p => p.Fields)
   .Where(f => f.Name == "some field name");

字段值存储在哪个表中,或者它们存储在其他地方?

我使用 SQL Server 作为 Orchard 的后端数据库。我看到这些字段是在表 Settings_ContentPartFieldDefinitionRecord 中定义的,但我不知道实际值存储在哪里。

【问题讨论】:

    标签: orchardcms orchardcms-1.7


    【解决方案1】:

    Orchard_Framework_ContentItemVersionRecord

    查看 Orchard 的首席开发人员 Sebastien Ros 的这篇博文,他谈到了数据库结构。 http://sebastienros.com/understanding-orchard-s-database

    【讨论】:

    • 谢谢!最重要的是,数据以 XML 格式存储在 Data 列中。
    猜你喜欢
    • 2018-11-09
    • 1970-01-01
    • 1970-01-01
    • 2020-07-31
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 2018-08-19
    • 2018-03-13
    相关资源
    最近更新 更多