Table of Contents

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

string

Methods

ContentAssembledFromParents(string, WebTemplateDto?)

public static string ContentAssembledFromParents(string currentContent, WebTemplateDto? parent)

Parameters

currentContent string
parent WebTemplateDto

Returns

string

HasRenderBodyTag(string)

public static bool HasRenderBodyTag(string s)

Parameters

s string

Returns

bool

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