且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

果园用户数据

更新时间:2023-02-01 23:26:48

用户是内容类型,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.