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

# EbillAddressQueryProvider

Query provider exposing 4 data-access operation(s) (`GetAddress`, `GetAddressByBatchId`, `GetAddressTypeByCode`, `GetAddressesToOverride`) against 4 distinct table(s); see [sql/index.md](../../sql/index.md) for the full ORM operation catalog.

## Purpose
- Provides read/write access to 4 table(s) via NHibernate `IQueryable<T>`/`GetRepository<T>()` calls documented in [sql/index.md](../../sql/index.md).
- Exposes 4 public query/command method(s) consumed by higher application layers; see [database-tables.md](../../database-tables.md) for the underlying schema.

## Context
- Namespace: `SAIF.Data.Queries.Claims.Ebilling`
- Assembly/package: `SAIF.Data`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| GetAddress | `EbillAddress GetAddress(long addressId)` | Executes an ORM query ([SQL-074](../../sql/SQL-074-ebill-address-query-provider-get-address.md)) against [EBILL_ADDRESS](../../database-tables.md#ebill_address). |
| GetAddressTypeByCode | `EbillAddressTypeCode GetAddressTypeByCode(string addressTypeCode)` | Executes an ORM query ([SQL-075](../../sql/SQL-075-ebill-address-query-provider-get-address-type-by-code.md)) against [EBILL_ADDRESS_TYPE_CODE](../../database-tables.md#ebill_address_type_code). |
| GetAddressByBatchId | `IEnumerable<EbillAddress> GetAddressByBatchId(long batchId)` | Executes an ORM query ([SQL-076](../../sql/SQL-076-ebill-address-query-provider-get-address-by-batch-id.md)) against [EBILL_ADDRESS](../../database-tables.md#ebill_address), [EBILL_BATCH](../../database-tables.md#ebill_batch). |
| GetAddressesToOverride | `IEnumerable<EbillAddressOverride> GetAddressesToOverride()` | Executes an ORM query ([SQL-077](../../sql/SQL-077-ebill-address-query-provider-get-addresses-to-override.md)) against [EBILL_ADDRESS_OVERRIDE](../../database-tables.md#ebill_address_override). |
| EbillAddressQueryProvider(IRepositoryFactory factory) | `EbillAddressQueryProvider(IRepositoryFactory factory)` | Initializes a new instance, wiring the repository factory used by this provider's query methods.* |

## Behavioral notes
- Query methods build LINQ expressions over `IQueryable<T>` obtained via `Factory.GetRepository<T>()` and execute them against the underlying NHibernate session.*

## Constraints and usage notes
- Instances are constructed with an `IRepositoryFactory` and are expected to be resolved through dependency injection rather than instantiated directly.*

> **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/Queries/Claims/Ebilling/EbillAddressQueryProvider.cs`
