KamiSama.Modules.ServicePlans.Core 10.0.11.5

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

KamiSama.Modules.ServicePlans.Core

Back to package index

Version: 10.0.0

Description

ASP.NET Core ServicePlans implementation with EF Core plan, offer, subscriber, and subscription entities, scoped CRUD features, modular registration, and startup initialization. Install one provider, provision the schema separately, and enforce authorization and domain validation in the host.

How to use

dotnet add package KamiSama.Modules.ServicePlans.Core --version 10.0.0

Publication mismatch: 10.0.0 in the required install command is the current workspace/root documentation version. NuGet returned no published package or version for this package ID when reviewed.

Install Core plus the selected provider package. Configure a database section with provider and connection-string, pass a callback that registers postgresql through AddPostgresqlServicePlansDbContext or sqlite through AddSqliteServicePlansDbContext, and finish setup through BuildAsync:

using KamiSama.Modules;
using KamiSama.Modules.ServicePlans;

IConfigurationSection servicePlans = webBuilder.Configuration.GetSection("ServicePlans");
ExtendedWebApplicationBuilder builder = webBuilder.Extend()
    .AddServicePlansModule(
        servicePlans,
        servicePlans.GetSection("database"),
        database => database.AddPostgresqlServicePlansDbContext());
WebApplication app = await builder.BuildAsync(cancellationToken);

The nullable provider callback is required in normal setup unless the host separately registers the exact configured keyed ServicePlansDbContext. During BuildAsync, Core binds the empty ServicePlansOptions, named connection and initialization options, scans Core for attributed scoped repositories and features, and selects __EFMigrationsHistory_ServicePlans. After build it resolves a custom IDatabaseInitializer<ServicePlansDbContext> or a migration-only default and executes the enabled migrate, initialize, and test-data stages. The default seed stages are no-ops.

Schema limitation: neither current provider package contains ServicePlans migrations. Enabling migrate therefore cannot create these tables from this checkout; provision a compatible schema or supply migrations/custom initialization before using the repositories. Core exposes tracked plan, offer, offer-country, offer-payment-method, subscriber, and subscription entities, but public feature services cover only plans, subscribers, and subscriptions. No public offer CRUD exists.

All current attributed ServicePlans features and repositories are assignable to their declared service contracts. Plan names and subscriber external-user identifiers use case-sensitive or case-normalized read-before-write duplicate checks without model-level unique indexes, so concurrent writes can create duplicates. Mutations save immediately without a feature-level transaction. Searches use translated lowercase equality for plan names, recognize only documented source tokens, and return tracked entities before DTO conversion.

Security and correctness limitations: Core maps no controllers, endpoints, middleware, authentication, or authorization. It does not validate positive rates or allowances, date ordering, duration consistency, enum validity, status transitions, subscriber enabled state, plan enabled state, or ownership of supplied subscriber identifiers. Subscription add/update accepts caller-selected usage balances and can reassign both subscriber and plan. Add endpoint authorization and domain validation before exposing these features.

Namespaces

Types

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on KamiSama.Modules.ServicePlans.Core:

Package Downloads
KamiSama.Modules.ServicePlans.Postgresql

PostgreSQL EF Core context registration for ServicePlans Core under the `postgresql` provider key. It configures Npgsql and lazy loading but currently ships no ServicePlans migrations.

KamiSama.Modules.ServicePlans.Sqlite

SQLite EF Core context registration for ServicePlans Core under the `sqlite` provider key. It configures SQLite and lazy loading but currently ships no ServicePlans migrations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.11.5 0 8/18/2026
10.0.11.4 0 8/18/2026
10.0.11.3 0 8/18/2026
10.0.11.2 0 8/18/2026
10.0.11.1 48 8/15/2026