Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Krunal Parmar 2 posts 72 karma points
    Jul 09, 2019 @ 07:27
    Krunal Parmar
    0

    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

  • 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.

Please Sign in or register to post replies