RenderRazorTemplate<TModel>

RenderRazorTemplate<TModel>

What to use it for

Prerequisites for usage

Essential options to set

Rendering razor templates.

 
  • Model
  • Model type
  • File Template or String Template
  • Result

 

<T>

Activities with a <T> will ask you to indicate what the data type is of the data that will be affected. Depending on the data type, you will get a different Template (<T>) with configuration options.

 

 Learn more about <T>

Activities with a <T> will ask you to indicate what the data type is of the data that will be affected. A database contains data of several types, and the <T> indicates that configuring that Activity starts with setting the targeted data type.

Depending on the data type, some configuration options will (dis)appear, depending on their relevancy.

When this Activity will affect this type of database data..Then select this option
BooleanBoolean
Whole numbersInt32
Text and/or numbersString
Object (with properties)Object
SmartBridge documentTie.MessagePortal.Shared.Entities.Document
Content of a SmartBridge documentTie.MessagePortal.Shared.Entities.DocumentContent
State of a SmartBridge documentTie.MessagePortal.Shared.Entities.DocumentState
A list of data of a specific data typeArray of (T)
Data specific to SmartBridgeBrowse for types...

Options for SmartBridge 3

OptionWhat is itHow to use it
ModelAn object that contains the input for the template.Enter the variable name of your model.
Model typeThe type of the model.Select the type of the model from the dropdown list.
File TemplateA path to a razor template file.

Enter a path to the razor template file, that includes file name and file extension.

You can enter the following:

  • Absolute folder path.
  • Relative folder path (not recommended).
  • VisualBasic expression that results in a folder path.

Recommended: Enter an absolute path.

String TemplateA razor template as a string or a variable that stores a razor template.Enter a variable name of your string template or a string literal containing your template.
Result The resulting (rendered) template as a string. Enter a variable of type string to assign the result to.
DisplayNameName of the Activity.