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

# Location

Domain entity representing Location data within the locations area of the claims/policy domain, mapped for NHibernate persistence.*

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

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Id | `long Id { get; set; }` | Primary key / surrogate identifier for this record.* |
| PolicyNum | `long? PolicyNum { get; set; }` | Value of policy num exposed by this type.* |
| BusId | `long? BusId { get; set; }` | Foreign-key identifier referencing the related bus record.* |
| AgentNum | `long? AgentNum { get; set; }` | Value of agent num exposed by this type.* |
| ParentId | `long? ParentId { get; set; }` | Foreign-key identifier referencing the related parent record.* |
| EffectiveDate | `DateTime EffectiveDate { get; set; }` | Date/time value for effective date.* |
| ExpirationDate | `DateTime? ExpirationDate { get; set; }` | Date/time value for expiration date.* |
| LocationCode | `string LocationCode { get; set; }` | Coded value identifying location code.* |
| LocationName | `string LocationName { get; set; }` | Value of location name exposed by this type.* |
| AddressLine1 | `string AddressLine1 { get; set; }` | Value of address line1 exposed by this type.* |
| AddressLine2 | `string AddressLine2 { get; set; }` | Value of address line2 exposed by this type.* |
| City | `string City { get; set; }` | Value of city exposed by this type.* |
| Country | `string Country { get; set; }` | Value of country exposed by this type.* |
| County | `County County { get; set; }` | Reference to the associated `County` record.* |
| PhoneNumber | `string PhoneNumber { get; set; }` | Value of phone number exposed by this type.* |
| PhoneExtension | `string PhoneExtension { get; set; }` | Value of phone extension exposed by this type.* |
| Fax | `string Fax { get; set; }` | Value of fax exposed by this type.* |
| State | `string State { get; set; }` | Value of state exposed by this type.* |
| Zip | `string Zip { get; set; }` | Value of zip exposed by this type.* |
| Zip4 | `string Zip4 { get; set; }` | Value of zip4 exposed by this type.* |
| SicCode | `string SicCode { get; set; }` | Coded value identifying sic code.* |
| ProviderNum | `long? ProviderNum { get; set; }` | Value of provider num exposed by this type.* |
| IsMailAddress | `bool IsMailAddress { get; set; }` | Indicates whether mail address.* |
| CreateUser | `string CreateUser { get; set; }` | Value of create user exposed by this type.* |
| CreateDate | `DateTime CreateDate { get; set; }` | Date/time value for create date.* |
| UpdateUser | `string UpdateUser { get; set; }` | Value of update user exposed by this type.* |
| UpdateDate | `DateTime? UpdateDate { get; set; }` | Date/time value for update date.* |
| IsDivertTT | `bool? IsDivertTT { get; set; }` | Indicates whether divert T T.* |
| UspsBarcode | `string UspsBarcode { get; set; }` | Value of usps barcode exposed by this type.* |
| EmailAddress | `string EmailAddress { get; set; }` | Value of email address exposed by this type.* |
| EmployeeCount | `long? EmployeeCount { get; set; }` | Value of employee count exposed by this type.* |
| AddressLine3 | `string AddressLine3 { get; set; }` | Value of address line3 exposed by this type.* |
| IsPrimaryLocation | `bool IsPrimaryLocation { get; set; }` | Indicates whether primary location.* |
| CellPhone | `string CellPhone { get; set; }` | Value of cell phone exposed by this type.* |

## 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/Locations/Location.cs`
