Benevia.Core.Contacts 0.8.7

There is a newer prerelease version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Benevia.Core.Contacts" Version="0.8.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Benevia.Core.Contacts" Version="0.8.7" />
                    
Directory.Packages.props
<PackageReference Include="Benevia.Core.Contacts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Benevia.Core.Contacts --version 0.8.7
                    
#r "nuget: Benevia.Core.Contacts, 0.8.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Benevia.Core.Contacts@0.8.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Benevia.Core.Contacts&version=0.8.7
                    
Install as a Cake Addin
#tool nuget:?package=Benevia.Core.Contacts&version=0.8.7
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed