MandalaConsulting.Objects 0.0.15

dotnet add package MandalaConsulting.Objects --version 0.0.15
                    
NuGet\Install-Package MandalaConsulting.Objects -Version 0.0.15
                    
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="MandalaConsulting.Objects" Version="0.0.15" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MandalaConsulting.Objects" Version="0.0.15" />
                    
Directory.Packages.props
<PackageReference Include="MandalaConsulting.Objects" />
                    
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 MandalaConsulting.Objects --version 0.0.15
                    
#r "nuget: MandalaConsulting.Objects, 0.0.15"
                    
#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 MandalaConsulting.Objects@0.0.15
                    
#: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=MandalaConsulting.Objects&version=0.0.15
                    
Install as a Cake Addin
#tool nuget:?package=MandalaConsulting.Objects&version=0.0.15
                    
Install as a Cake Tool

MandalaConsulting.Objects

A .NET library providing standardized data models and objects for general application development, focusing on account management, billing systems, and data serialization.

Overview

MandalaConsulting.Objects provides a core set of reusable data models that can be used across various types of applications. Unlike the API-specific variant, this library focuses on general-purpose object models without API-specific dependencies.

Installation

Install via NuGet:

dotnet add package MandalaConsulting.Objects

Features

  • Account Management Models: User accounts, profiles, credentials, and IP tracking
  • Billing System Models: Complete billing workflow models
  • MongoDB Integration: Native MongoDB support with BSON serialization
  • JSON Serialization: Newtonsoft.Json integration
  • No API Dependencies: Pure data models without ASP.NET Core dependencies

Key Differences from MandalaConsulting.Objects.API

  • No ASP.NET Core MVC dependencies
  • No API-specific utilities (CustomFormFile, etc.)
  • Focused on pure data models
  • Suitable for console apps, services, and non-web applications

Core Models

Account Namespace

  • User - User account information
  • Profile - User profile details
  • Credentials - Authentication credentials
  • IPInfo - IP address and location tracking

Billing Namespace

  • Product - Product catalog entries
  • Purchase - Purchase transactions
  • Subscription - Recurring subscriptions
  • Bill - Invoices and bills
  • CreditCard - Payment card details
  • PaymentCredentials - Payment authentication
  • PaymentType - Payment method types
  • Address - Billing/shipping addresses
  • Contact - Contact information
  • Inventory - Inventory tracking
  • Sale - Sales transactions

Utilities

  • ResponseData<T> - Generic response wrapper
  • JObjectSerializer - Custom JSON/BSON serialization

Usage Example

using MandalaConsulting.Objects.API.Account;
using MandalaConsulting.Objects.API.Billing;

// Create a user
var user = new User
{
    Email = "user@example.com",
    Username = "johndoe",
    CreatedDate = DateTime.UtcNow
};

// Create a product
var product = new Product
{
    Name = "Premium Subscription",
    Price = 9.99m,
    Description = "Monthly premium access"
};

// Process a purchase
var purchase = new Purchase
{
    UserId = user.Id,
    ProductId = product.Id,
    Amount = product.Price,
    PurchaseDate = DateTime.UtcNow
};

Dependencies

  • .NET 8.0
  • MongoDB.Driver (3.4.0)
  • Newtonsoft.Json (13.0.3)

Documentation

For detailed documentation on individual models and their properties, see the API subfolder README.

License

Copyright © 2023 Mandala Consulting, LLC. All rights reserved.

Author

Created by Alexander Fields

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
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.0.15 0 9/1/2025
0.0.13 97 7/5/2025
0.0.12 305 6/12/2025
0.0.11 290 6/12/2025
0.0.10 218 6/8/2025
0.0.9 162 5/9/2025
0.0.8 829 11/17/2024
0.0.7 281 11/17/2024
0.0.6 455 10/12/2024