Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
anyone know if it is possible to use Modelsbuilder with the UmbracoApiController? And if so, how to do it? I can´t seem to gain access to the models.
Yes you are. How are you using the models? I mean, Dll, App_Data, ... ?
Hi mr. Magician,
i´m using them in dll in development and PureLive in live.
There you have the issue. PureLive the models are generated in a dynamic in-memory assembly. That means you won't be able to compile any C# code using them. Because it does not exist at compile time. If you use any of the other modes, the models will be build and can be available in your solution.
Doing so will allow you to use the models in your (Api)Controllers.
thanks for solving this mystery for me :-).
Glad I could help. :-)
The only thing which I need to do now, is to practice some magic... And submit a proposal talk for next year... ;-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted