Search Results for

    Show / Hide Table of Contents

    Class EmailTemplate

    Represents an email template for automated communication within the OEMS system.

    Inheritance
    object
    EmailTemplate
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Domain.Klassen
    Assembly: OEMS.Core.dll
    Syntax
    public class EmailTemplate

    Constructors

    EmailTemplate()

    Initializes a new instance of the EmailTemplate class.

    Declaration
    public EmailTemplate()

    EmailTemplate(Guid, Guid, string, string, string, string, string)

    Initializes a new instance of the EmailTemplate class with specified values.

    Declaration
    public EmailTemplate(Guid id, Guid organizationId, string name, string subject, string body, string variables = null, string notes = null)
    Parameters
    Type Name Description
    Guid id

    The unique identifier for the email template.

    Guid organizationId

    The identifier of the organization that owns this template.

    string name

    The display name of the template.

    string subject

    The subject line template.

    string body

    The body content template.

    string variables

    Optional JSON string containing variable definitions.

    string notes

    Optional notes or documentation for the template.

    Properties

    Body

    Gets or sets the body content for emails generated from this template.

    Declaration
    [Required]
    public string Body { get; set; }
    Property Value
    Type Description
    string

    The email body template content, which may include variables for personalization.

    Id

    Gets or sets the unique identifier for the email template.

    Declaration
    [Key]
    public Guid Id { get; set; }
    Property Value
    Type Description
    Guid

    A GUID that uniquely identifies the email template across the system.

    Name

    Gets or sets the display name of the email template.

    Declaration
    [Required]
    [StringLength(100)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    A descriptive name for the template, limited to 100 characters.

    Notes

    Gets or sets additional notes or documentation for this email template.

    Declaration
    public string Notes { get; set; }
    Property Value
    Type Description
    string

    Optional notes providing context or usage instructions for the template.

    Organization

    Gets or sets the organization that owns this email template.

    Declaration
    [ForeignKey("OrganizationId")]
    public virtual Organization Organization { get; set; }
    Property Value
    Type Description
    Organization

    The Organization entity that created this template.

    OrganizationId

    Gets or sets the organization identifier that owns this email template.

    Declaration
    [Required]
    public Guid OrganizationId { get; set; }
    Property Value
    Type Description
    Guid

    A GUID referencing the organization that created this template.

    ProcessStepTemplates

    Gets or sets the collection of process step templates that use this email template.

    Declaration
    public virtual ICollection<ProcessStepTemplate> ProcessStepTemplates { get; set; }
    Property Value
    Type Description
    ICollection<ProcessStepTemplate>

    A collection of ProcessStepTemplate entities that reference this email template.

    Subject

    Gets or sets the subject line for emails generated from this template.

    Declaration
    [Required]
    [StringLength(200)]
    public string Subject { get; set; }
    Property Value
    Type Description
    string

    The email subject template, limited to 200 characters.

    Variables

    Gets or sets the variables available for use in this email template.

    Declaration
    public string Variables { get; set; }
    Property Value
    Type Description
    string

    A JSON string containing variable definitions for template personalization.

    In this article
    Back to top Generated by DocFX