I am using API mode to generate my model and it get generated successfully.
However when I try to use this model I am not able to directly user property of my model like Model.Name , instead my model is exposed through content property of Model. So I have to use it like Model.Content.Name, So I don't see any benefit in generating strongly type model.
Let me know if there is anything wrong. This is how I am referring my model.
How to use strongly type model generated by API
I am using API mode to generate my model and it get generated successfully.
However when I try to use this model I am not able to directly user property of my model like Model.Name , instead my model is exposed through content property of Model. So I have to use it like Model.Content.Name, So I don't see any benefit in generating strongly type model.
Let me know if there is anything wrong. This is how I am referring my model.
@using UmbracoViaNuget.Models @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.