VOOZH about

URL: https://www.nuget.org/packages/SimplyWorks.PrimitiveTypes/

⇱ NuGet Gallery | SimplyWorks.PrimitiveTypes 8.1.3




👁 Image
SimplyWorks.PrimitiveTypes 8.1.3

dotnet add package SimplyWorks.PrimitiveTypes --version 8.1.3
 
 
NuGet\Install-Package SimplyWorks.PrimitiveTypes -Version 8.1.3
 
 
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="SimplyWorks.PrimitiveTypes" Version="8.1.3" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimplyWorks.PrimitiveTypes" Version="8.1.3" />
 
Directory.Packages.props
<PackageReference Include="SimplyWorks.PrimitiveTypes" />
 
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 SimplyWorks.PrimitiveTypes --version 8.1.3
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimplyWorks.PrimitiveTypes, 8.1.3"
 
 
#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 SimplyWorks.PrimitiveTypes@8.1.3
 
 
#: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=SimplyWorks.PrimitiveTypes&version=8.1.3
 
Install as a Cake Addin
#tool nuget:?package=SimplyWorks.PrimitiveTypes&version=8.1.3
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SW.PrimitiveTypes

Foundational .NET library with essential types, patterns, and interfaces for modern application development.

Quick Start

dotnet add package SimplyWorks.PrimitiveTypes

What's Included

💎 Value Objects

Ready-to-use business types with built-in validation and conversion:

  • Money - Currency handling with conversion support
  • Weight - Mass measurements (kg, lb, oz, g)
  • Dimensions - 3D measurements with unit conversion
  • StreetAddress - Structured address representation

🏗️ Domain Patterns

Clean architecture building blocks:

  • IEntity<T> - Entity interfaces with identity
  • IAggregateRoot<T> - Domain aggregate markers
  • ISpecification<T> - Business rule specifications
  • ValueObject - Base class with equality semantics

🎯 API Handlers

CQRS-style interfaces for clean APIs:

  • IGetHandler<TKey, TResult> - Query operations
  • ICommandHandler<TRequest, TResult> - Command operations
  • IDeleteHandler<TKey> - Delete operations

🚌 Messaging Contracts

Event-driven architecture interfaces:

  • IPublish / IConsume<T> - Message publishing/consumption
  • IBroadcast / IListen<T> - Event broadcasting/listening

Usage Example

// Value Objects
var price = new Money(99.99m, "USD");
var weight = new Weight(2.5m, WeightUnit.kg);
var size = new Dimensions(30, 20, 10, DimensionUnit.cm);

// Domain Entity
public class Product : IAggregateRoot
{
 public int Id { get; set; }
 public Money Price { get; set; }
 public Weight ShippingWeight { get; set; }
 public Dimensions PackageDimensions { get; set; }
}

// API Handler
public class GetProductHandler : IGetHandler<int, Product>
{
 public async Task<Product> Handle(int id)
 {
 // Retrieve and return product
 return await productRepository.GetByIdAsync(id);
 }
}

Related Packages

Part of the Simplify9 ecosystem:

📚 More Information

📖 View on GitHub →

Visit our GitHub repository for additional examples, source code, and contribution opportunities.


MIT Licensed | Made by Simplify9

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (22)

Showing the top 5 NuGet packages that depend on SimplyWorks.PrimitiveTypes:

Package Downloads
SimplyWorks.HttpExtensions

A lightweight .NET library providing HTTP extensions for simplified JSON operations, HTTP client helpers, and API client abstractions with JWT support. Includes extensions for HttpContent, HttpClient, HttpClientFactory, and dependency injection setup. See GitHub for full documentation and examples.

SimplyWorks.EfCoreExtensions

Open-source Entity Framework Core extensions for .NET, including helpers for ChangeTracker, DbContext, IQueryable, and more. See full documentation at https://github.com/simplify9/EfCoreExtensions

SimplyWorks.Serverless.Sdk

SDK for developing .NET serverless adapters with the Runner class, logging utilities, and adapter communication protocols. See https://github.com/simplify9/SW-Serverless for full documentation.

SimplyWorks.Logger

Package Description

SimplyWorks.CloudFiles.S3

Multi-cloud storage abstraction library for S3-compatible storage (AWS S3, DigitalOcean Spaces, MinIO, etc.). Provides unified file operations with automatic lifecycle management. Part of SW.CloudFiles suite supporting Azure, Google Cloud, and Oracle Cloud. See full documentation at https://github.com/simplify9/SW-CloudFiles

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.1.3 757 4/7/2026
8.1.2 2,821 9/16/2025
8.1.1 368 9/16/2025
8.1.0 366 9/16/2025
8.0.4 1,423 7/31/2025
8.0.0 5,988 1/20/2025
6.1.3 7,904 2/5/2024
6.1.1 8,800 7/24/2023
6.1.0 868 7/24/2023
6.0.5 17,374 3/23/2023
6.0.3 3,580 2/27/2023
6.0.1 8,265 2/2/2023
2.0.120 1,494 2/1/2023
2.0.117 15,338 11/15/2022
2.0.113 46,590 10/24/2021
2.0.112 61,181 8/24/2021
2.0.110 7,979 5/9/2021
2.0.108 1,204 4/19/2021
2.0.106 27,955 12/17/2020
2.0.104 18,471 12/6/2020
Loading failed