External razor views can't see external models

后端 未结 2 1488
醉话见心
醉话见心 2021-01-29 05:27

I have a problem with external razor views. In my project I have main mvc web assembly and dynamically loaded external class library assemblies(from DB) with their own Controlle

2条回答
  •  遥遥无期
    2021-01-29 05:41

    Try use the using directive in your Views in the dynamic assembly.

    @using MyNamespace.MyPlugin.Models;
    @using MyNamespace.MyPlugin;
    

    etc

提交回复
热议问题