View Source
Class PublishedModelUtility
This is called from within the generated model classes
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class PublishedModelUtility
Methods
View Source
GetModelContentType(IPublishedSnapshotAccessor, PublishedItemType, String)
Declaration
public static IPublishedContentType GetModelContentType(IPublishedSnapshotAccessor publishedSnapshotAccessor, PublishedItemType itemType, string alias)
Parameters
Returns
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 Parameters
Name |
Description |
TModel |
|
TValue |
|