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


# CbpBillMap

`CbpBillMap` is a FluentNHibernate `ClassMap<T>` (or `SubclassMap<T>`/`JoinedSubclassMap<T>`) that maps the `CbpBill` business object to the table `CBP_BILL` (Oracle*, schema/link `[unqualified]**`). It is discovered by FluentNHibernate's assembly scan and requires no manual registration by consumers (`saif-data-nhibernate-db-analysis.md` classmap inventory).

## Purpose
- Declares the column, id, and association mappings that let NHibernate perform Create / Read / Update / Delete against `CBP_BILL`, backing the entity/entities `CbpBill`.
- Configures the Oracle sequence `CBP_BILL_SEQ` as the id generator for new rows*.

## Context
- Namespace: `SAIF.Data.NHibernate.Mappings.Claims.Bills`
- Assembly/package: `SAIF.Data.NHibernate` (ships inside the `SAIF.SAIFCode.Core` NuGet package)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `CbpBillMap()` | `public CbpBillMap()` | Constructor; declares the FluentNHibernate mapping (table, id generator, columns, associations) for `CBP_BILL` when invoked by the assembly scan. This class exposes no other public members beyond those inherited from FluentNHibernate's `ClassMap<T>`/`SubclassMap<T>` base* |

## Inherited public members

`CbpBillMap` inherits its full public surface from FluentNHibernate's `ClassMap<CbpBill>` base class (`FluentNHibernate.Mapping.ClassMap<T>`), which is declared in the external FluentNHibernate package and is not otherwise documented in this repository. The table below lists the key inherited members used to build the mapping in the constructor.*

| Member | Signature | Purpose |
| --- | --- | --- |
| Id | `IdentityPart Id<TProperty>(Expression<Func<CbpBill, TProperty>> memberExpression, string column = null)` | Maps the primary-key property to its column.* |
| Map | `PropertyPart Map<TProperty>(Expression<Func<CbpBill, TProperty>> memberExpression, string columnName = null)` | Maps a scalar property to its column.* |
| References | `ManyToOnePart<TOther> References<TOther>(Expression<Func<CbpBill, TOther>> memberExpression, string columnName = null)` | Maps a many-to-one association.* |
| HasMany | `OneToManyPart<TChild> HasMany<TChild>(Expression<Func<CbpBill, IEnumerable<TChild>>> memberExpression)` | Maps a one-to-many collection association.* |
| HasManyToMany | `ManyToManyPart<TChild> HasManyToMany<TChild>(Expression<Func<CbpBill, IEnumerable<TChild>>> memberExpression)` | Maps a many-to-many collection association.* |
| HasOne | `OneToOnePart<TOther> HasOne<TOther>(Expression<Func<CbpBill, TOther>> memberExpression)` | Maps a one-to-one association.* |
| Table | `ClassMap<CbpBill> Table(string tableName)` | Sets the mapped table name.* |
| Schema | `ClassMap<CbpBill> Schema(string schema)` | Sets the mapped schema name.* |
| DynamicInsert | `ClassMap<CbpBill> DynamicInsert()` | Enables dynamic SQL INSERT generation, including only non-null properties.* |
| DynamicUpdate | `ClassMap<CbpBill> DynamicUpdate()` | Enables dynamic SQL UPDATE generation, including only changed properties.* |
| LazyLoad | `ClassMap<CbpBill> LazyLoad()` | Enables lazy loading for the mapped entity.* |

## Behavioral notes
- This type has no runtime behavior of its own; it is read once by FluentNHibernate during session-factory configuration to build the underlying NHibernate mapping model*.
- CRUD classification for the mapped table: CRUD (ORM-capable).

## Constraints and usage notes
- Consumers never construct `CbpBillMap` directly; it is instantiated by FluentNHibernate when the containing assembly (`typeof(CbpBillMap).Assembly`) is passed to the session-factory configuration (see [Architecture](../../architecture.md))*.

> **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.

## Related documentation
- [Index](../../index.md)
- [Overview](../../overview.md)
- [Architecture](../../architecture.md)
- [Dependencies](../../dependencies.md)
- [Operations and processes](../../operations-processes.md)
- [Business rules](../../business-rules.md)
- [Database tables](../../database-tables.md)
- [SQL catalog](../../sql/index.md)
- [Procedures](../../procedures/index.md)
- [Security and authorization](../../security-authorization.md)
- [API reference](../index.md)

## Sources
- `Data/SAIF.Data.NHibernate/Mappings/Claims/Bills/CbpBillMap.cs`
