Class WebTemplateExtensions
- Namespace
- Raytha.Application.Common.Utils
- Assembly
- Raytha.Application.dll
public static class WebTemplateExtensions
- Inheritance
-
WebTemplateExtensions
- Inherited Members
Fields
RENDERBODY_REGEX
public const string RENDERBODY_REGEX = "{%\\s*\\b(?:renderbody)\\s*%}"
Field Value
Methods
ContentAssembledFromParents(string, WebTemplateDto?)
public static string ContentAssembledFromParents(string currentContent, WebTemplateDto? parent)
Parameters
currentContent
stringparent
WebTemplateDto
Returns
HasRenderBodyTag(string)
public static bool HasRenderBodyTag(string s)
Parameters
s
string
Returns
IncludeParentTemplates<TEntity>(IQueryable<TEntity>, Expression<Func<TEntity, WebTemplate?>>)
public static IQueryable<TEntity> IncludeParentTemplates<TEntity>(this IQueryable<TEntity> query, Expression<Func<TEntity, WebTemplate?>> navigationProperty) where TEntity : class
Parameters
query
IQueryable<TEntity>navigationProperty
Expression<Func<TEntity, WebTemplate>>
Returns
- IQueryable<TEntity>
Type Parameters
TEntity