Class PublishedModelUtility
This is called from within the generated model classes
Inheritance
System.Object
Assembly: cs.temp.dll.dll
Syntax
public static class PublishedModelUtility
Methods
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 |
|
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 |
|
Expression<System.Func<TModel, TValue>> |
selector |
|
Returns
Type |
Description |
IPublishedPropertyType |
|
Type Parameters
Name |
Description |
TModel |
|
TValue |
|