MandalaConsulting.Objects
0.0.15
dotnet add package MandalaConsulting.Objects --version 0.0.15
NuGet\Install-Package MandalaConsulting.Objects -Version 0.0.15
<PackageReference Include="MandalaConsulting.Objects" Version="0.0.15" />
<PackageVersion Include="MandalaConsulting.Objects" Version="0.0.15" />
<PackageReference Include="MandalaConsulting.Objects" />
paket add MandalaConsulting.Objects --version 0.0.15
#r "nuget: MandalaConsulting.Objects, 0.0.15"
#:package MandalaConsulting.Objects@0.0.15
#addin nuget:?package=MandalaConsulting.Objects&version=0.0.15
#tool nuget:?package=MandalaConsulting.Objects&version=0.0.15
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 informationProfile
- User profile detailsCredentials
- Authentication credentialsIPInfo
- IP address and location tracking
Billing Namespace
Product
- Product catalog entriesPurchase
- Purchase transactionsSubscription
- Recurring subscriptionsBill
- Invoices and billsCreditCard
- Payment card detailsPaymentCredentials
- Payment authenticationPaymentType
- Payment method typesAddress
- Billing/shipping addressesContact
- Contact informationInventory
- Inventory trackingSale
- Sales transactions
Utilities
ResponseData<T>
- Generic response wrapperJObjectSerializer
- 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 | Versions 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. |
-
net8.0
- MongoDB.Bson (>= 3.4.0)
- MongoDB.Driver (>= 3.4.0)
- MongoDB.Driver.Core (>= 2.30.0)
- MongoDB.Driver.GridFS (>= 2.30.0)
- MongoDB.Libmongocrypt (>= 1.12.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.