SQL-251: PolicyOutputDocumentExtensions.SeedForDocumentTesting¶
This statement is a create operation invoked through ORM (IRepository.Add). Executed by PolicyOutputDocumentExtensions.SeedForDocumentTesting.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-251 |
| Operation type | Create |
| Execution method | ORM (IRepository.Add) |
| 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 |
|---|---|---|
| batch_process_log | INSERT (hypothetical) | module, control_text, run_date |
LINQ statement¶
Source: Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:73.
// Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:73
uow.GetRepository<BatchProcessLog>().Add(new BatchProcessLog { Module = "DOCUMENTDATE", RunDate = DateTime.Today.Date });
Sample SQL¶
Test double — no runtime SQL. This statement executes against
TestUnitOfWork/TestRepository<T>(in-memory,List<TEntity>-backed test doubles inSAIF.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 NHibernateIUnitOfWorkusing 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.
-- Inferred from LINQ (NHibernate mapping translation); not concrete SQL
INSERT INTO batch_process_log (
module,
control_text,
run_date)
VALUES (
:Module,
:ControlText,
:RunDate)
Translation notes:
- Id(module) is assigned ("DOCUMENTDATE"); control_text is NULL.
Sources¶
Data/SAIF.Data/TestRepository/RepositoryExtensions/PolicyOutputDocumentExtensions.cs:73