User Data in Orchard

折月煮酒 提交于 2019-12-14 02:22:59

问题


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?

Thanks


回答1:


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.

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.

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.



来源:https://stackoverflow.com/questions/45879092/user-data-in-orchard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!