---
title: DocumentTemplate
summary: API reference for DocumentTemplate.
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# DocumentTemplate

Domain entity representing Document template data within the documents area of the claims/policy domain, mapped for NHibernate persistence.*

## Purpose
- Models document template data used by the documents area of this library.*
- Inherits shared identity/lifecycle behavior from `EntityBase`.

## Context
- Namespace: `SAIF.Data.Model.Documents`
- Assembly/package: `SAIF.Data`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Id | `long Id { get; set; }` | Primary key / surrogate identifier for this record.* |
| DocumentTemplateOutputProfiles | `IList<DocumentTemplateOutputProfile> DocumentTemplateOutputProfiles { get; set; }` | Value of document template output profiles exposed by this type.* |
| DocumentTemplateOptions | `IList<DocumentTemplateOption> DocumentTemplateOptions { get; set; }` | Value of document template options exposed by this type.* |
| Name | `string Name { get; set; }` | Value of name exposed by this type.* |
| Title | `string Title { get; set; }` | Value of title exposed by this type.* |
| RunType | `RunTypeCode RunType { get; set; }` | Reference to the associated `RunTypeCode` record.* |
| RunTemplate | `string RunTemplate { get; set; }` | Value of run template exposed by this type.* |
| RunRoutine | `string RunRoutine { get; set; }` | Value of run routine exposed by this type.* |
| RunParameterFormName | `string RunParameterFormName { get; set; }` | Value of run parameter form name exposed by this type.* |
| NextDocTemplateSeqNum | `long? NextDocTemplateSeqNum { get; set; }` | Value of next doc template seq num exposed by this type.* |
| AdditionalPageNum | `long? AdditionalPageNum { get; set; }` | Value of additional page num exposed by this type.* |
| ContextType | `ContextCode ContextType { get; set; }` | Reference to the associated `ContextCode` record.* |
| BusinessGroup | `string BusinessGroup { get; set; }` | Value of business group exposed by this type.* |
| Subgroup | `string Subgroup { get; set; }` | Value of subgroup exposed by this type.* |
| IsEnabled | `bool IsEnabled { get; set; }` | Indicates whether enabled.* |
| EffectiveDate | `DateTime? EffectiveDate { get; set; }` | Date/time value for effective date.* |
| ExpirationDate | `DateTime? ExpirationDate { get; set; }` | Date/time value for expiration date.* |
| NoteText | `string NoteText { get; set; }` | Value of note text exposed by this type.* |
| ImageFileCode | `string ImageFileCode { get; set; }` | Coded value identifying image file code.* |
| ImageCategoryCode | `string ImageCategoryCode { get; set; }` | Coded value identifying image category code.* |
| ImageDocumentTypeCode | `string ImageDocumentTypeCode { get; set; }` | Coded value identifying image document type code.* |
| ImageDocumentNameCode | `string ImageDocumentNameCode { get; set; }` | Coded value identifying image document name code.* |
| ImageDocumentName | `string ImageDocumentName { get; set; }` | Value of image document name exposed by this type.* |
| ImageIsRequired | `bool ImageIsRequired { get; set; }` | Value of image is required exposed by this type.* |
| SharedMessage | `string SharedMessage { get; set; }` | Value of shared message exposed by this type.* |
| MainBannerPageText | `string MainBannerPageText { get; set; }` | Value of main banner page text exposed by this type.* |
| AdditionalBannerPageText | `string AdditionalBannerPageText { get; set; }` | Value of additional banner page text exposed by this type.* |
| UpdateNumber | `int UpdateNumber { get; set; }` | Value of update number exposed by this type.* |
| UpdateUser | `string UpdateUser { get; set; }` | Value of update user exposed by this type.* |
| UpdateDate | `DateTime? UpdateDate { get; set; }` | Date/time value for update date.* |
| CreateUser | `string CreateUser { get; set; }` | Value of create user exposed by this type.* |
| CreateDate | `DateTime? CreateDate { get; set; }` | Date/time value for create date.* |

## Behavioral notes
- Properties are typically declared `virtual` to support NHibernate lazy-loading proxies (see the corresponding mapping file under `Data/SAIF.Data.NHibernate`).*

## Constraints and usage notes
- No additional usage constraints beyond standard NHibernate entity/DTO conventions could be confirmed from static analysis.**

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Data/SAIF.Data/Model/Documents/DocumentTemplate.cs`
