Hello, guys! I have Examine node, but that node is in DynamicPublishedContent format, so when I try to use that node in strong typed model I get error Unable to cast object of type 'Umbraco.Web.Models.DynamicPublishedContent' to type but I want to use strong type model, I have strong typed model for this node document type and when I take that node by using umbraco means everything works perfectly well because I can convert from IPublishedContent to my strong typed model freely, but in case of Examine everyting is dynamic, is there any way to make it strong typed?
DynamicPublishedContent to strong type
Hello, guys! I have Examine node, but that node is in DynamicPublishedContent format, so when I try to use that node in strong typed model I get error
Unable to cast object of type 'Umbraco.Web.Models.DynamicPublishedContent' to type
but I want to use strong type model, I have strong typed model for this node document type and when I take that node by using umbraco means everything works perfectly well because I can convert from IPublishedContent to my strong typed model freely, but in case of Examine everyting is dynamic, is there any way to make it strong typed?if DynamicPublishedContent derives from IPublishedContent, you can do something like this
var doc=new stronglytypeddoc(dynamicpublishedcontent).
I've not had to do this specifically but...
Awesome! Thanks a lot!
is working on a reply...