---
title: "SQL-292: PolicyOutputDocumentExtensions.SeedForDocumentTesting"
summary: Read operation for `PolicyOutputDocumentExtensions.SeedForDocumentTesting`
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# SQL-292: PolicyOutputDocumentExtensions.SeedForDocumentTesting

This statement is a read operation invoked through ORM (NHibernate LINQ). Executed by `PolicyOutputDocumentExtensions.SeedForDocumentTesting`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-292 |
| **Operation type** | Read |
| **Execution method** | ORM (NHibernate LINQ) |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | N/A (ORM-generated) |
| **Business object** | `PolicyOutputDocumentExtensions` |
| **Criteria property** | N/A — ORM |
| **Lifecycle method** | `SeedForDocumentTesting` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [output_doc_notify_text_code](../database-tables.md#output_doc_notify_text_code) | INSERT ×3 (hypothetical) | code, code_descr, notification_text |

## LINQ statement

Source: `Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:78`.

```csharp
// Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:78
uow.GetRepository<OutputDocumentNotifyTextCode>().Seed();

// Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:132-137
public static void Seed(this IRepository<OutputDocumentNotifyTextCode> repo)
{
    repo.Add(new OutputDocumentNotifyTextCode { Code = OutputDocumentNotifyTextCode.PolicyDocumentNotifyTextCode, NotificationText = "You have policy document(s) available:" });
    repo.Add(new OutputDocumentNotifyTextCode { Code = OutputDocumentNotifyTextCode.RetroDocumentNotifyTextCode, NotificationText = "You have a retro evaluation available." });
    repo.Add(new OutputDocumentNotifyTextCode { Code = OutputDocumentNotifyTextCode.ErmodDocumentNotifyTextCode, NotificationText = "You have an ermod document available." });
```

## Sample SQL

> **Test double — no runtime SQL.** This statement executes against `TestUnitOfWork`/`TestRepository<T>` (in-memory, `List<TEntity>`-backed test doubles in `SAIF.Framework.Core`); no NHibernate session is opened and no SQL is issued at runtime. The SQL below is the hypothetical statement the same expression would produce against a real NHibernate `IUnitOfWork` using the in-repo mappings, shown to document the mapping shape only — **no database table is accessed when this code runs.**

> **Inferred SQL:** This SQL was inferred from the LINQ statement above and the NHibernate mappings. It is not concrete SQL from source code; NHibernate generates the executed statement at runtime, so aliases, column order, join syntax, and bind-parameter names may differ.

```sql
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
INSERT INTO output_doc_notify_text_code (
  code,
  code_descr,
  notification_text)
VALUES (
  :Code,
  :Description,
  :NotificationText)
-- issued 3 time(s) (one per repository.Add, lines 132-137)
```

Translation notes:
- Rows are added directly with `repository.Add(new T {...})` (no existence probe).

## Sources

- `Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:78`
