Benevia.Core.Contacts
0.8.7
See the version list below for details.
dotnet add package Benevia.Core.Contacts --version 0.8.7
NuGet\Install-Package Benevia.Core.Contacts -Version 0.8.7
<PackageReference Include="Benevia.Core.Contacts" Version="0.8.7" />
<PackageVersion Include="Benevia.Core.Contacts" Version="0.8.7" />
<PackageReference Include="Benevia.Core.Contacts" />
paket add Benevia.Core.Contacts --version 0.8.7
#r "nuget: Benevia.Core.Contacts, 0.8.7"
#:package Benevia.Core.Contacts@0.8.7
#addin nuget:?package=Benevia.Core.Contacts&version=0.8.7
#tool nuget:?package=Benevia.Core.Contacts&version=0.8.7
Benevia.Core.Contacts
Maintainers
Introduction
This module provides contact management functionality. It includes entities and business logic for managing contacts (people and companies), physical and mailing addresses, and countries. The module uses the event-driven architecture from Benevia.Core.Events and auto-generates OData API endpoints.
Entities
Contact
Represents a person or company with contact information. Automatically determines type based on whether company or person names are filled. Supports separate mailing and physical addresses.
Address
Represents a physical or mailing address with street, city, state, postal code, and optional country reference.
Country
Represents a country with name and ISO 2-letter code.
ContactType
Enumeration: Company or Person.
Business Logic
ContactBL
Computes contact type, full name, and title based on whether company or person fields are used.
AddressBL
Computes formatted full address and title from address components.
Architecture
flowchart TD
Contact[Contact Entity]
Address[Address Entity]
Country[Country Entity]
Contact -->|MailingAddress| Address
Contact -->|PhysicalAddress| Address
Address -->|Country| Country
ContactBL[ContactBL] -->|Computes| Contact
AddressBL[AddressBL] -->|Computes| Address
API[OData API Endpoints] -->|Auto-generated| Contact
API -->|Auto-generated| Address
API -->|Auto-generated| Country
Setup
Registration
Add the contacts module to your service collection:
services.AddCoreContacts();
Usage
You can reference the entities in your own models:
[ApiEntity]
public partial class Customer : IContactAccount
{
[Required]
[Property<DataTypes.IdText>("Customer ID")]
public partial string Id { get; set; }
// IContactAccount provides PrimaryContact property automatically
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Benevia.Core (>= 0.8.7)
- Benevia.Core.API (>= 0.8.7)
- Benevia.Core.DataGenerator (>= 0.8.7)
- Benevia.Core.Events.DataTypes (>= 0.8.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.8-ci.48 | 3 | 4/6/2026 |
| 0.8.7 | 86 | 4/2/2026 |
| 0.8.7-ci.46 | 31 | 4/2/2026 |
| 0.8.7-ci.45 | 32 | 4/2/2026 |
| 0.8.7-ci.44 | 30 | 4/1/2026 |
| 0.8.7-ci.43 | 39 | 3/31/2026 |
| 0.8.7-ci.42 | 31 | 3/31/2026 |
| 0.8.6 | 148 | 3/25/2026 |
| 0.8.6-ci.40 | 40 | 3/25/2026 |
| 0.8.5 | 94 | 3/25/2026 |
| 0.8.5-ci.38 | 36 | 3/25/2026 |
| 0.8.5-ci.37 | 38 | 3/25/2026 |
| 0.8.5-ci.36 | 40 | 3/24/2026 |
| 0.8.4 | 157 | 3/23/2026 |
| 0.8.4-ci.34 | 39 | 3/23/2026 |
| 0.8.4-ci.33 | 36 | 3/23/2026 |
| 0.8.3 | 88 | 3/19/2026 |
| 0.8.3-ci.31 | 43 | 3/19/2026 |
| 0.8.3-ci.30 | 45 | 3/19/2026 |
| 0.8.3-ci.29 | 42 | 3/19/2026 |