果园用户数据 [英] User Data in Orchard

查看:72
本文介绍了果园用户数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何标志可以确定用户在果园中是否活跃?因为我试图删除果园中的一个用户,但该记录仍然存在于表中:xxx_Orchard_Users_UserPartRecordxxx_Orchard_Framework_ContentItemRecord

is there any flag that determine if a user is active or not in orchard? Because I tried to delete a user in orchard but the record is still exists in tables: xxx_Orchard_Users_UserPartRecord xxx_Orchard_Framework_ContentItemRecord

所以我猜还有另一个表存储这些信息?

So I'm guessing there's another table that stores this info?

谢谢

推荐答案

用户是内容类型,Orchard 为每个用户创建内容项.当您创建新用户时,Orchard 会将记录添加到 xxx_Orchard_Users_UserPartRecord、xxx_Orchard_Framework_ContentItemRecord、xxx_Orchard_Framework_ContentItemVersionRecord 和 xxx_Orchard_Roles_UserRolesPartRecord(如果您将任何角色链接到用户).

Users are content types and Orchard creates content items for each user. When you create a new user Orchard adds records to xxx_Orchard_Users_UserPartRecord, xxx_Orchard_Framework_ContentItemRecord, xxx_Orchard_Framework_ContentItemVersionRecord and xxx_Orchard_Roles_UserRolesPartRecord if you linked any roles to the user.

xxx_Orchard_Framework_ContentItemVersionRecord 表跟踪版本号以及内容项是否已发布以及已发布内容项的最新版本.

The xxx_Orchard_Framework_ContentItemVersionRecord table keeps track of the version number and whether or not a content item is published or not and which version of the published content item is the latest.

当您删除用户时,Orchard 不会从表中删除记录,而只是创建一个新版本记录并将新版本和旧版本的已发布和最新列设置为 0.由于没有已发布的最新版本,因此内容项不会显示在用户列表中.

When you delete the user Orchard does not delete the records from the tables, but simply creates a new version record and sets Published and Latest columns to 0 for the new version and the old version. Because there is no published and latest version the content item does not show up on the list of users.

这篇关于果园用户数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆