Msm.Workflow.Lib.Infrastructure
1.3.0
See the version list below for details.
dotnet add package Msm.Workflow.Lib.Infrastructure --version 1.3.0
NuGet\Install-Package Msm.Workflow.Lib.Infrastructure -Version 1.3.0
<PackageReference Include="Msm.Workflow.Lib.Infrastructure" Version="1.3.0" />
<PackageVersion Include="Msm.Workflow.Lib.Infrastructure" Version="1.3.0" />
<PackageReference Include="Msm.Workflow.Lib.Infrastructure" />
paket add Msm.Workflow.Lib.Infrastructure --version 1.3.0
#r "nuget: Msm.Workflow.Lib.Infrastructure, 1.3.0"
#:package Msm.Workflow.Lib.Infrastructure@1.3.0
#addin nuget:?package=Msm.Workflow.Lib.Infrastructure&version=1.3.0
#tool nuget:?package=Msm.Workflow.Lib.Infrastructure&version=1.3.0
Msm.Workflow.Lib.Infrastructure
Infrastructure layer cho MSM Workflow Engine - chứa Entity Framework Core DbContext, configurations, và database access.
📦 Installation
<PackageReference Include="Msm.Workflow.Lib.Infrastructure" Version="1.0.0" />
dotnet add package Msm.Workflow.Lib.Infrastructure
📋 Overview
Package này cung cấp data access layer với Entity Framework Core và PostgreSQL support. Bao gồm DbContext, entity configurations, và migration support.
Contents
- WorkflowDbContext: Main DbContext cho workflow entities
- Entity Configurations: EF Core configurations cho tất cả entities
- Multi-Tenancy Support: Schema-based multi-tenancy với PostgreSQL
- Migrations: Database migration support
🎯 Usage
Register Services
using Msm.Workflow.Lib.Infrastructure;
// In Program.cs or Startup.cs
services.AddInfrastructure(configuration);
Configure DbContext
services.AddDbContext<WorkflowDbContext>(options =>
options.UseNpgsql(connectionString));
Multi-Tenancy
Package hỗ trợ schema-based multi-tenancy:
// Set tenant context
tenantProvider.SetCurrentTenantKey("tenant1");
// DbContext sẽ tự động sử dụng schema tương ứng
var processes = await context.WorkflowProcesses.ToListAsync();
🔗 Dependencies
Msm.Workflow.Lib.Domain(required)Microsoft.EntityFrameworkCore(8.0.0)Npgsql.EntityFrameworkCore.PostgreSQL(8.0.0)Microsoft.Extensions.Configuration(8.0.0)
📚 Related Packages
Msm.Workflow.Lib.Domain- Required dependencyMsm.Workflow.Lib.Application- Uses this package for data access
🗄️ Database Requirements
- PostgreSQL 12+ (for multi-tenancy support)
- Connection string format:
Host=localhost;Port=5432;Database=msm_workflow;Username=postgres;Password=password
📖 Documentation
For more information, see the main README.md and MIGRATION_GUIDE.md.
| 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 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. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 8.0.11)
- Microsoft.Extensions.Configuration (>= 9.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Msm.Workflow.Lib.Domain (>= 1.3.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.11)
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.11)
- Microsoft.Extensions.Configuration (>= 9.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 9.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Msm.Workflow.Lib.Domain (>= 1.3.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.11)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Msm.Workflow.Lib.Infrastructure:
| Package | Downloads |
|---|---|
|
Msm.Workflow.Lib.Application
Application layer for MSM Workflow Engine containing business logic, services, and DTOs. Requires Msm.Workflow.Lib.Domain and Msm.Workflow.Lib.Infrastructure. |
GitHub repositories
This package is not used by any popular GitHub repositories.