Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedModelUtility

    This is called from within the generated model classes

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public static class PublishedModelUtility
    Remarks

    DO NOT REMOVE - although there are not code references this is used directly by the generated models.

    Methods

    View Source

    GetModelContentType(IPublishedSnapshotAccessor, PublishedItemType, String)

    Declaration
    public static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor, PublishedItemType itemType, string alias)
    Parameters
    Type Name Description
    IPublishedSnapshotAccessor publishedSnapshotAccessor
    PublishedItemType itemType
    System.String alias
    Returns
    Type Description
    IPublishedContentType
    View Source

    GetModelPropertyType<TModel, TValue>(IPublishedContentType, Expression<Func<TModel, TValue>>)

    Declaration
    public static IPublishedPropertyType GetModelPropertyType<TModel, TValue>(IPublishedContentType contentType, Expression<Func<TModel, TValue>> selector)
    Parameters
    Type Name Description
    IPublishedContentType contentType
    System.Linq.Expressions.Expression<Func<TModel, TValue>> selector
    Returns
    Type Description
    IPublishedPropertyType
    Type Parameters
    Name Description
    TModel
    TValue
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetModelContentType(IPublishedSnapshotAccessor, PublishedItemType, String)
      • GetModelPropertyType<TModel, TValue>(IPublishedContentType, Expression<Func<TModel, TValue>>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX