Copied to clipboard

Flag this post as spam?

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


  • Souvik 9 posts 89 karma points notactivated
    Sep 04, 2023 @ 10:21
    Souvik
    0

    GetStandardPropertyTypeStubs() in Umbraco 10?

    I am migrating an existing application from Umbraco 8 to Umbraco 10 and also the framework to .net 6. I am stuck on this line of code as "Member" class doesnt have a method named GetStandardPropertyTypeStubs() anymore. Annyone have any idea as to where this has shifted to or if there is a replacement for it?

    var builtIns = Umbraco.Cms.Core.Constants.Conventions.Member.GetStandardPropertyTypeStubs().Select(x => x.Key).ToArray();
    

    Note: I am using this builtins like this to get the MemberProperties of a model

    var memberType = _memberTypeService.Get(memberTypeAlias);
    var model = new RegisterModel();
    model.MemberProperties = GetMemberPropertiesViewModel(memberType, builtIns).ToList(); 
    

    If there is any other way to get the memberproperties that would be helpful too.

Please Sign in or register to post replies

Write your reply to:

Draft