47 packages tagged with “Primitive”
This package contains a Souce Generator which generates Value Objects that wrap simple primitives such as int, string, double etc. A ValueObject is a strongly typed (strongly, not stringly) domain object that is immutable. Instead of `int customerId = 42;` we have `var customerId = CustomerId.From(42);` To use, just create something like this: [ValueObject(typeof(int))] public partial struct CustomerId { } var customerId = CustomerId.From(42); Validation is in just one place. You can't introduce bad objects into your domain, therefore you can assume that in your domain every ValueObject is valid.
Declare Value Objects in one line e.g. `class ClientRef : ValueOf<string, ClientRef> { }`), create using `ClientRef.From(someString)` The base Type ValueOf<TValue, TThis>, provides Equals, GetHashcode. Use ValueTuples for multi property values e.g `class Address : ValueOf<(string firstLine, string secondLine, Postcode postcode), Address> {}`
Create primitives to combat primitive obsession.
Nequeo primitive component
Basic blocks for building algorithms and data structures. Commonly used types: - Color - Endpoints<TVertex> - EqualityComparerEquatable<T, TComparer>
A base implementation of strongly typed ids that supports Newtonsoft.Json, System.Text.Json, EntityFramework Core, and Swashbuckle.AspNetCore.
Ultimate Rx.Net extension. Turn primitive variable to be reactive ! Refer to readme for more details and examples
Typely: Unleashing the power of value object creation with a fluent Api. This package contains type generators.
Reproducing images with geometric primitives.
A library which provides the core abstractions for the Primitively C# source generator
Basic blocks for building algorithms and data structures. Commonly used types: • Int32ColorDictionary • Int32Dictionary<TValue, TValueList> • Int32ReadOnlyDictionary<TValue, TValueList> • Int32Set
Typely: Unleashing the power of value object creation with a fluent Api. This package contains interfaces that a consumer must implement.
A C# source generator that promotes the benefits of type-safety by encapsulating primitive types commonly used as identifiers or value objects
Structure comparison (primitive and complex type, enums)
Type Conversion Of Primitive Data Types
A library which provides ASP.NET Core Model Binding and Open Api Schema support for types produced by the Primitively C# source generator
A library which provides FluentValidation support for types produced by the Primitively C# source generator
.NET Standard library of simple value type related functionality.
A cure for primitive obsession. Enables creation of types with value object semantics.
A .NET library with helpful extensions for primitive types - such as formatting strings with named placeholders.
A collection of primitive classes used to create custom primitives in C#
Provides utilities and abstractions that are used throughout the Jodo libraries.
This package contains a very simple implementation of a ValueObject in .NET. A ValueObject is a strongly typed (strongly, not stringly) domain object that is immutable. Instead of `int customerId = 42;` we have `var customerId = CustomerId.From(42);` Validation is in just one place. You can't introduce bad objects into your domain, therefore you can assume that in your domain every ValueObject is valid. Handy.
Contains extension methods and other utilities for working with primitive types like strings and integers.
Package Description
数据与领域双驱动的一站式企业级软件开发范式,全程:Data-Domain Driven Design,简称:D4,具有易用、强大、高效、安全、智能、现代化和可持续迭代等特性;提供一组通用的语言(原语等)统一领域认知和沟通基准、一种标准化的建模设计(聚合根、实体、值对象、领域事件、领域命令等)表达领域逻辑、一套规范化的代码组织(如仓储、工作单元、消息驱动等)标准化软件工程和全套基础设施(如:运行日志(流量、操作、SQL等)、多租户、上下文管理、事件总线等),有效降低迭代成本、提升交付效率;确保软件开发全生命周期业务、模型与代码的边界明确、实现一致、高内聚低耦合。