Acontplus.Core
1.5.2
See the version list below for details.
dotnet add package Acontplus.Core --version 1.5.2
NuGet\Install-Package Acontplus.Core -Version 1.5.2
<PackageReference Include="Acontplus.Core" Version="1.5.2" />
<PackageVersion Include="Acontplus.Core" Version="1.5.2" />
<PackageReference Include="Acontplus.Core" />
paket add Acontplus.Core --version 1.5.2
#r "nuget: Acontplus.Core, 1.5.2"
#:package Acontplus.Core@1.5.2
#addin nuget:?package=Acontplus.Core&version=1.5.2
#tool nuget:?package=Acontplus.Core&version=1.5.2
Acontplus.Core
A cutting-edge .NET 9+ foundational library leveraging the latest C# language features and business patterns. Built with performance, type safety, and developer experience in mind.
🚀 .NET Features
🎯 Latest C# Language Features
- Collection Expressions -
[]
syntax for efficient collection initialization - Primary Constructors - Concise record and class definitions
- Required Properties - Compile-time null safety with
required
keyword - Pattern Matching - Advanced
switch
expressions andis
patterns - Record Structs - High-performance value types for DTOs and results
- Nullable Reference Types - Full compile-time null safety
- Source Generators - JSON serialization with AOT compilation support
- Global Usings - Clean namespace management with global using directives
🏗️ Architecture Patterns
- Domain-Driven Design (DDD) - Complete DDD implementation with C# features
- Functional Result Pattern - Railway-oriented programming with record structs
- Repository Pattern - Comprehensive data access with bulk operations
- Specification Pattern - Type-safe query composition with expressions
- Event Sourcing Ready - Domain events with event patterns
- Warnings System - Success with warnings pattern for complex business operations
📊 Advanced Data Patterns
- Async Streaming -
IAsyncEnumerable<T>
for memory-efficient processing - Projections - Expression-based data transfer for performance
- Bulk Operations - High-performance batch processing interfaces
- Smart Pagination - Advanced pagination with search and filtering
- JSON Utilities - System.Text.Json with source generation
- Repository Interfaces - Complete repository abstractions with CRUD, specifications, and bulk operations
- Clean Architecture - No persistence dependencies, implementations provided in separate packages
🔥 Core Features
🌟 NEW: Global Business Enums
17 comprehensive business enums available globally across all applications - no more duplicate definitions!
🔄 Process & Status Management
BusinessStatus
- 13 lifecycle states (Draft → Active → Archived)Priority
- 5 priority levels (Low → Emergency)DocumentType
- 16 document types (Invoice, Contract, Report, etc.)EventType
- 19 event types (Authentication, CRUD operations, Workflow, etc.)
👤 Person & Demographics
Gender
- 5 inclusive options (Male, Female, NonBinary, Other, NotSpecified)MaritalStatus
- 8 relationship states (Single, Married, Divorced, etc.)Title
- 12 honorifics (Mr, Mrs, Dr, Prof, Sir, Dame, etc.)
🏢 Business & Organization
Industry
- 19 industry classifications (Technology, Healthcare, Finance, etc.)CompanySize
- 11 size categories (Startup → Multinational Corporation)
💰 Financial & Commerce
Currency
- 15 international currencies (USD, EUR + Latin American)PaymentMethod
- 15 payment options (Cards, Digital wallets, BNPL, etc.)
🔐 Security & Access
UserRole
- 14 role levels (Guest → SuperAdmin → ServiceAccount)
🌍 Internationalization
Language
- 20 languages (Major world languages + Latin American Spanish)TimeZone
- 16 time zones (UTC, regional + Latin American zones)
📱 Communication & Content
CommunicationChannel
- 11 channels (Email, SMS, WhatsApp, Teams, etc.)AddressType
- 12 address categories (Home, Work, Billing, Shipping, etc.)ContentType
- 20 media types (Text, Images, Videos, Documents, Archives)
// ✅ Available everywhere via global using
public class Customer : BaseEntity
{
public Gender Gender { get; set; } // 🌟 Global enum
public Title Title { get; set; } // 🌟 Global enum
public MaritalStatus MaritalStatus { get; set; } // 🌟 Global enum
public Language PreferredLanguage { get; set; } // 🌟 Global enum
public CommunicationChannel PreferredChannel { get; set; } // 🌟 Global enum
}
public class Order : BaseEntity
{
public BusinessStatus Status { get; set; } // 🌟 Global enum
public Priority Priority { get; set; } // 🌟 Global enum
public Currency Currency { get; set; } // 🌟 Global enum
public PaymentMethod PaymentMethod { get; set; } // 🌟 Global enum
}
🔄 Comprehensive Result Pattern System
Complete Railway-Oriented Programming implementation with functional composition, multiple error handling, and fluent API design.
🎯 Core Result Types
// Generic Result with custom error type
Result<TValue, TError>
// Result with fixed DomainError (most common)
Result<TValue>
// Multiple errors support
Result<TValue, DomainErrors>
// Success with warnings pattern
SuccessWithWarnings<TValue>
✨ Fluent API - Create Results from Errors
// ✅ NEW: Fluent API from DomainError
public static Result<User> GetUser(int id) =>
id <= 0
? DomainError.Validation("INVALID_ID", "ID must be positive").Failure<User>()
: new User { Id = id };
// ✅ NEW: Fluent API from DomainErrors
public static Result<User, DomainErrors> ValidateUser(CreateUserRequest request)
{
var errors = new List<DomainError>();
if (string.IsNullOrEmpty(request.Name))
errors.Add(DomainError.Validation("NAME_REQUIRED", "Name required"));
if (string.IsNullOrEmpty(request.Email))
errors.Add(DomainError.Validation("EMAIL_REQUIRED", "Email required"));
return errors.Count > 0
? DomainErrors.Multiple(errors).FailureMultiple<User>()
: new User { Name = request.Name, Email = request.Email };
}
🔧 Traditional Factory Methods (Still Supported)
// Traditional approach still works
Result<Product>.Success(product);
Result<Product>.Failure(domainError);
// Generic version
Result<Product, DomainError>.Success(product);
Result<Product, DomainError>.Failure(domainError);
🚀 Advanced Error Types
// 🔸 Single Domain Error
var singleError = DomainError.NotFound("USER_001", "User not found");
// 🔸 Multiple Domain Errors
var multipleErrors = DomainErrors.Multiple(
DomainError.Validation("NAME_REQUIRED", "Name is required"),
DomainError.Validation("EMAIL_INVALID", "Email format is invalid")
);
// 🔸 Domain Warnings (Success with issues)
var warnings = DomainWarnings.Multiple(
DomainError.Validation("DATA_INCOMPLETE", "Some optional fields missing"),
DomainError.Validation("DEPRECATED_API", "Using deprecated API version")
);
⚡ Functional Composition
// Railway-oriented programming
public async Task<Result<OrderConfirmation>> ProcessOrderAsync(CreateOrderRequest request)
{
return await ValidateOrderRequest(request)
.Map(order => CalculateTotal(order))
.MapAsync(order => ProcessPaymentAsync(order))
.Map(order => GenerateConfirmation(order))
.OnFailure(error => _logger.LogError("Order processing failed: {Error}", error));
}
// Pattern matching
public IActionResult HandleOrderResult(Result<Order> result)
{
return result.Match(
success: order => Ok(order),
failure: error => BadRequest(error.ToApiError())
);
}
// Async pattern matching
public async Task<string> FormatOrderResultAsync(Result<Order> result)
{
return await result.MatchAsync(
success: async order => await FormatOrderAsync(order),
failure: async error => await FormatErrorAsync(error)
);
}
🔗 Chaining Operations
// Chain operations with Map
var result = await GetUserAsync(userId)
.Map(user => ValidateUser(user))
.MapAsync(user => EnrichUserDataAsync(user))
.Map(user => ConvertToDto(user));
// Handle side effects
var result = await ProcessDataAsync()
.OnSuccess(data => _logger.LogInformation("Processing completed"))
.OnFailure(error => _logger.LogError("Processing failed: {Error}", error));
// Transform errors
var result = await CallExternalApiAsync()
.MapError(error => DomainError.External("API_ERROR", $"External service failed: {error}"));
🚨 Error Analysis & Handling
// Error severity analysis
var errors = DomainErrors.Multiple(
DomainError.Internal("DB_ERROR", "Database connection failed"),
DomainError.Validation("INVALID_EMAIL", "Invalid email format")
);
var mostSevere = errors.GetMostSevereErrorType(); // Returns ErrorType.Internal
var httpStatus = mostSevere.ToHttpStatusCode(); // Returns 500
// Error filtering and grouping
var validationErrors = errors.GetErrorsOfType(ErrorType.Validation);
var hasServerErrors = errors.HasErrorsOfType(ErrorType.Internal);
// Aggregate error messages
var summary = errors.GetAggregateErrorMessage();
// "Multiple errors occurred (2): [Internal] Database connection failed; [Validation] Invalid email format"
⚠️ Success with Warnings Pattern
// Business operations that succeed but have warnings
public async Task<SuccessWithWarnings<List<Product>>> ImportProductsAsync(List<ProductDto> dtos)
{
var products = new List<Product>();
var warnings = new List<DomainError>();
foreach (var dto in dtos)
{
try
{
var product = await CreateProductAsync(dto);
products.Add(product);
}
catch (ValidationException ex)
{
warnings.Add(DomainError.Validation("IMPORT_WARNING",
$"Product {dto.Name} skipped: {ex.Message}"));
}
}
return new SuccessWithWarnings<List<Product>>(products, new DomainWarnings(warnings));
}
// Extension methods for warnings
var result = products.WithWarning(DomainError.Validation("WARN_001", "Some data incomplete"));
var resultMultiple = products.WithWarnings(warnings);
🌐 HTTP Integration
// Automatic HTTP status code mapping
var error = DomainError.Validation("INVALID_INPUT", "Input validation failed");
var statusCode = error.GetHttpStatusCode(); // Returns 422 (Unprocessable Entity)
// Convert to API responses
var apiResponse = error.ToApiResponse<ProductDto>();
var resultResponse = result.ToApiResponse<ProductDto>("Operation completed");
// Built-in error type mappings:
ErrorType.Validation → 422 Unprocessable Entity
ErrorType.NotFound → 404 Not Found
ErrorType.Unauthorized → 401 Unauthorized
ErrorType.Forbidden → 403 Forbidden
ErrorType.Conflict → 409 Conflict
ErrorType.Internal → 500 Internal Server Error
ErrorType.External → 502 Bad Gateway
ErrorType.RateLimited → 429 Too Many Requests
// ... and more
🎨 Real-World Examples
// ✅ Simple validation
public Result<User> CreateUser(string name, string email)
{
if (string.IsNullOrWhiteSpace(name))
return DomainError.Validation("NAME_REQUIRED", "Name is required").Failure<User>();
if (!IsValidEmail(email))
return DomainError.Validation("EMAIL_INVALID", "Invalid email format").Failure<User>();
return new User { Name = name, Email = email };
}
// ✅ Complex business logic with multiple errors
public async Task<Result<Order, DomainErrors>> ProcessOrderAsync(OrderRequest request)
{
var errors = new List<DomainError>();
// Validate customer
var customer = await _customerService.GetByIdAsync(request.CustomerId);
if (customer is null)
errors.Add(DomainError.NotFound("CUSTOMER_NOT_FOUND", "Customer not found"));
// Validate products
foreach (var item in request.Items)
{
var product = await _productService.GetByIdAsync(item.ProductId);
if (product is null)
errors.Add(DomainError.NotFound("PRODUCT_NOT_FOUND", $"Product {item.ProductId} not found"));
else if (product.Stock < item.Quantity)
errors.Add(DomainError.Conflict("INSUFFICIENT_STOCK", $"Not enough stock for {product.Name}"));
}
if (errors.Count > 0)
return DomainErrors.Multiple(errors).FailureMultiple<Order>();
// Process order
var order = new Order
{
CustomerId = request.CustomerId,
Items = request.Items,
Status = BusinessStatus.Active
};
return await _orderRepository.CreateAsync(order);
}
// ✅ Functional composition for complex workflows
public async Task<Result<InvoiceDto>> GenerateInvoiceAsync(int orderId)
{
return await GetOrderAsync(orderId)
.MapAsync(order => ValidateOrderForInvoicingAsync(order))
.MapAsync(order => CalculateInvoiceAmountsAsync(order))
.MapAsync(invoice => ApplyTaxCalculationsAsync(invoice))
.MapAsync(invoice => GeneratePdfAsync(invoice))
.Map(invoice => ConvertToDto(invoice))
.OnSuccess(invoice => _logger.LogInformation("Invoice generated: {InvoiceId}", invoice.Id))
.OnFailure(error => _logger.LogError("Invoice generation failed: {Error}", error));
}
🎯 Best Practices
// ✅ DO: Use specific error codes and messages
DomainError.NotFound("USER_NOT_FOUND", $"User with ID {id} was not found");
// ❌ DON'T: Use generic error messages
DomainError.NotFound("ERROR", "Something went wrong");
// ✅ DO: Use fluent API for cleaner code
return id <= 0
? DomainError.Validation("INVALID_ID", "ID must be positive").Failure<User>()
: GetUserFromDatabase(id);
// ✅ DO: Use pattern matching for flow control
return result.Match(
success: user => ProcessUser(user),
failure: error => HandleError(error)
);
// ✅ DO: Chain operations for complex workflows
var result = await ValidateInput(input)
.MapAsync(data => ProcessDataAsync(data))
.Map(processed => FormatOutput(processed))
.OnFailure(error => LogError(error));
// ✅ DO: Use DomainErrors for multiple validation errors
var errors = new List<DomainError>();
if (IsInvalid(name)) errors.Add(DomainError.Validation("INVALID_NAME", "Name invalid"));
if (IsInvalid(email)) errors.Add(DomainError.Validation("INVALID_EMAIL", "Email invalid"));
return errors.Count > 0
? DomainErrors.Multiple(errors).FailureMultiple<User>()
: CreateUser(name, email);
🔍 Validation Utilities
Comprehensive validation utilities for common business scenarios:
// Data Validation
public static class DataValidation
{
public static bool IsValidJson(string json);
public static bool IsValidXml(string xml);
public static bool IsValidEmail(string email);
public static bool IsValidUrl(string url);
public static bool IsValidPhoneNumber(string phoneNumber);
}
// XML Validation with Schemas
public static class XmlValidator
{
public static IEnumerable<ValidationError> Validate(string xmlContent, string xsdSchema);
public static bool IsValid(string xmlContent, string xsdSchema);
public static ValidationResult ValidateWithDetails(string xmlContent, string xsdSchema);
}
// Usage Examples
var validationResult = input switch
{
{ Length: 0 } => DomainError.Validation("EMPTY_INPUT", "Input cannot be empty"),
{ Length: > 100 } => DomainError.Validation("TOO_LONG", "Input too long"),
_ when !DataValidation.IsValidEmail(input) => DomainError.Validation("INVALID_EMAIL", "Invalid email format"),
_ => null
};
// JSON Validation
if (!DataValidation.IsValidJson(jsonContent))
{
return DomainError.Validation("INVALID_JSON", "Invalid JSON format");
}
// XML Validation with Schema
var xmlErrors = XmlValidator.Validate(xmlContent, xsdSchema);
if (xmlErrors.Any())
{
return DomainError.Validation("INVALID_XML", "XML validation failed",
details: new Dictionary<string, object> { ["errors"] = xmlErrors.ToList() });
}
🔥 Advanced JSON Extensions
Business-optimized JSON handling with multiple serialization options:
// JSON Serialization Options
public static class JsonExtensions
{
public static JsonSerializerOptions DefaultOptions { get; } // Production-optimized
public static JsonSerializerOptions PrettyOptions { get; } // Development-friendly
public static JsonSerializerOptions StrictOptions { get; } // API-strict validation
}
// Serialization Methods
var json = myObject.SerializeOptimized(); // Uses DefaultOptions
var prettyJson = myObject.SerializeOptimized(pretty: true); // Uses PrettyOptions
// Deserialization with Error Handling
try
{
var obj = jsonString.DeserializeOptimized<MyType>();
}
catch (JsonException ex)
{
// Detailed error information
var error = DomainError.Validation("JSON_DESERIALIZE_ERROR", ex.Message);
}
// Safe Deserialization with Fallback
var obj = jsonString.DeserializeSafe<MyType>(fallback: new MyType());
// Deep Cloning via JSON
var clone = myObject.CloneDeep(); // Creates deep copy via JSON serialization
// Business Examples
public class ProductService
{
public async Task<string> ExportProductsAsync(List<Product> products, bool prettyFormat = false)
{
return products.SerializeOptimized(pretty: prettyFormat);
}
public async Task<List<Product>> ImportProductsAsync(string json)
{
try
{
return json.DeserializeOptimized<List<Product>>();
}
catch (JsonException ex)
{
throw new BusinessException("Failed to import products", ex);
}
}
}
🧩 Powerful Extension Methods
Comprehensive extension methods for enhanced productivity:
Nullable Extensions
public static class NullableExtensions
{
public static bool IsNull<T>(this T? value) where T : class;
public static bool IsNotNull<T>(this T? value) where T : class;
public static T OrDefault<T>(this T? value, T defaultValue) where T : class;
public static T OrThrow<T>(this T? value, Exception exception) where T : class;
public static T OrThrow<T>(this T? value, string message) where T : class;
}
// Usage Examples
var result = nullableValue.OrDefault("default value");
var safeValue = nullableValue.OrThrow("Value is required");
var user = userRepository.GetByIdAsync(id).OrThrow(new UserNotFoundException(id));
if (product.IsNotNull())
{
// Process product
}
Enum Extensions
public static class EnumExtensions
{
public static string DisplayName(this Enum value); // Gets Description attribute or ToString()
}
// Usage with Description Attributes
public enum Priority
{
[Description("Low Priority")]
Low = 1,
[Description("Normal Priority")]
Normal = 2,
[Description("High Priority - Urgent")]
High = 3
}
var displayName = Priority.High.DisplayName(); // Returns "High Priority - Urgent"
Pagination Extensions
public static class PaginationExtensions
{
public static PaginationDto WithSearch(this PaginationDto pagination, string searchTerm);
public static PaginationDto WithSort(this PaginationDto pagination, string sortBy, SortDirection direction);
public static PaginationDto WithFilters(this PaginationDto pagination, Dictionary<string, object> filters);
public static Dictionary<string, object> BuildSqlParameters(this PaginationDto pagination);
public static Dictionary<string, object> BuildFiltersWithPrefix(this PaginationDto pagination, string prefix);
}
Domain Error Extensions
public static class DomainErrorExtensions
{
public static ApiResponse<T> ToApiResponse<T>(this DomainError error, string? correlationId = null);
public static ApiResponse<T> ToApiResponse<T>(this Result<T> result, string? correlationId = null);
public static DomainError GetMostSevereError(this IEnumerable<DomainError> errors);
public static HttpStatusCode GetHttpStatusCode(this DomainError error);
public static string GetAggregateErrorMessage(this DomainErrors errors);
}
Validation System
Data Validation
public static class DataValidation
{
public static bool IsValidJson(string json);
public static bool IsValidXml(string xml);
public static bool IsValidEmail(string email);
public static bool IsValidUrl(string url);
public static bool IsValidPhoneNumber(string phoneNumber);
}
XML Validation
public static class XmlValidator
{
public static IEnumerable<ValidationError> Validate(string xmlContent, string xsdSchema);
public static bool IsValid(string xmlContent, string xsdSchema);
public static ValidationResult ValidateWithDetails(string xmlContent, string xsdSchema);
}
Constants & Helpers
API Metadata Keys
public static class ApiMetadataKeys
{
public const string Page = "page";
public const string PageSize = "pageSize";
public const string TotalItems = "totalItems";
public const string TotalPages = "totalPages";
public const string HasNextPage = "hasNextPage";
public const string HasPreviousPage = "hasPreviousPage";
public const string CorrelationId = "correlationId";
// ... and more
}
API Response Helpers
public static class ApiResponseHelpers
{
public static ApiResponse<T> CreateSuccessResponse<T>(T data, string message);
public static ApiResponse<T> CreateErrorResponse<T>(string message, string errorCode);
public static ApiResponse<T> CreateValidationErrorResponse<T>(IEnumerable<ValidationError> errors);
public static ApiResponse<T> CreateNotFoundResponse<T>(string message);
}
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
git clone https://github.com/Acontplus-S-A-S/acontplus-dotnet-libs.git
cd acontplus-dotnet-libs
dotnet restore
dotnet build
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- 📧 Email: proyectos@acontplus.com
- 🐛 Issues: GitHub Issues
- 📖 Documentation: Wiki
👨💻 Author
Ivan Paz - @iferpaz7
🏢 Company
Acontplus S.A.S. - Software solutions
Built with ❤️ for the .NET community using the latest .NET 9 features
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- No dependencies.
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Acontplus.Core:
Package | Downloads |
---|---|
Acontplus.Persistence.SqlServer
Advanced library for SQL Server persistence with Entity Framework Core integration. Includes repositories, context management, ADO.NET support, advanced error handling, and enterprise-ready data access patterns for SQL Server databases. |
|
Acontplus.Utilities
Comprehensive utilities library with cross-cutting concerns and general-purpose tools. Includes encryption, IO operations, text processing, time utilities, API helpers, JSON utilities, and security features for enterprise applications. |
|
Acontplus.Services
Comprehensive library for API services, authentication, claims, middleware, and configuration. Includes JWT authentication, user context management, exception handling, security headers, and enterprise-ready service patterns for ASP.NET Core applications. |
|
Acontplus.Notifications
Comprehensive library for notification services. Includes email (MailKit, Amazon SES), WhatsApp, push notifications, templating with Scriban, queue management, and enterprise-ready delivery patterns for cloud-native applications. |
|
Acontplus.FactElect
Complete library for electronic invoicing and SRI integration in Ecuador. Includes models, services, XML validation, SRI web service support, and embedded XSD schemas for compliance. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.5.4 | 203 | 9/14/2025 |
1.5.3 | 178 | 9/14/2025 |
1.5.2 | 206 | 9/14/2025 |
1.5.1 | 205 | 9/14/2025 |
1.5.0 | 158 | 9/9/2025 |
1.4.7 | 199 | 8/21/2025 |
1.4.6 | 123 | 8/21/2025 |
1.4.5 | 150 | 8/19/2025 |
1.4.4 | 171 | 8/8/2025 |
1.4.3 | 140 | 8/8/2025 |
1.4.2 | 231 | 8/7/2025 |
1.4.1 | 213 | 8/7/2025 |
1.4.0 | 212 | 8/7/2025 |
1.3.2 | 577 | 7/23/2025 |
1.3.1 | 168 | 7/18/2025 |
1.3.0 | 216 | 7/14/2025 |
1.2.10 | 136 | 7/14/2025 |
1.2.9 | 169 | 7/14/2025 |
1.2.8 | 117 | 7/11/2025 |
1.2.7 | 126 | 7/11/2025 |
1.2.6 | 175 | 7/10/2025 |
1.2.5 | 137 | 7/10/2025 |
1.2.4 | 141 | 7/10/2025 |
1.2.3 | 135 | 7/10/2025 |
1.2.2 | 138 | 7/10/2025 |
1.2.1 | 170 | 7/10/2025 |
1.2.0 | 168 | 7/10/2025 |
1.1.11 | 170 | 7/9/2025 |
1.1.10 | 231 | 7/6/2025 |
1.1.9 | 138 | 7/6/2025 |
1.1.8 | 141 | 7/6/2025 |
1.1.7 | 174 | 7/6/2025 |
1.1.6 | 143 | 7/6/2025 |
1.1.5 | 144 | 7/6/2025 |
1.1.4 | 156 | 7/4/2025 |
1.1.3 | 193 | 7/2/2025 |
1.1.2 | 170 | 7/2/2025 |
1.1.1 | 141 | 7/2/2025 |
1.1.0 | 205 | 7/1/2025 |
Enhanced with cutting-edge C# features and 17 comprehensive global business enums for multi-application standardization. New enums include BusinessStatus, Priority, DocumentType, Gender, MaritalStatus, Title, Currency, PaymentMethod, UserRole, Language, TimeZone, CommunicationChannel, AddressType, ContentType, Industry, CompanySize, and EventType - all globally available and fully documented. Includes comprehensive error handling with HTTP status code mapping, functional result patterns, domain event system, specification pattern interfaces, advanced pagination with search and filtering, powerful JSON utilities with multiple serialization options, XML validation helpers, and enterprise-ready abstractions. Clean architecture with no persistence dependencies - repository implementations are provided in separate persistence packages. Optimized for AOT compilation and contemporary C# development patterns.