Orchard Rename Content Type in Migration

陌路散爱 提交于 2019-12-24 09:23:57

问题


I'm hoping to rename an existing custom content type in one of my Orchard modules. Is it possible to do this in a migration?


回答1:


Yes, but not by using ContentDefinitionManager. The simplest way would be to execute an SQL update query against Settings_ContentTypeDefinitionRecord table using SchemaBuilder.ExecuteSql.



来源:https://stackoverflow.com/questions/27956273/orchard-rename-content-type-in-migration

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