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

# EdiFile

Domain entity representing Edi file data within the edi area of the claims/policy domain, mapped for NHibernate persistence.*

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

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Id | `long Id { get; set; }` | Primary key / surrogate identifier for this record.* |
| Description | `string Description { get; set; }` | Value of description exposed by this type.* |
| CreateDate | `DateTime CreateDate { get; set; }` | Date/time value for create date.* |
| Segments | `IList<EdiSegment> Segments { get; set; }` | Value of segments exposed by this type.* |
| AddSegment | `void AddSegment(EdiSegment segment)` | Adds segment.* |
| EdiFile() | `EdiFile()` | Initializes a new instance of the type with the supplied dependencies.* |

## 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/Edi/EdiFile.cs`
