Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Azunt.InstructionManagement

Azunt.InstructionManagement is a reusable .NET module for managing instruction templates with Name, Content, Active, CreatedAt, and CreatedBy fields.

This package follows the same structure as Azunt.ConclusionManagement and Azunt.ReasonManagement:

  • Azunt.InstructionManagement: reusable class library/NuGet package
  • Azunt.SqlServer: SQL Server Database Project containing the Instructions table
  • Azunt.Web: Blazor Server test web app using EF Core In-Memory by default

Projects

src/Azunt.InstructionManagement
 ├─ Azunt.InstructionManagement.sln
 ├─ Azunt.InstructionManagement
 │  ├─ 00_Common
 │  ├─ 01_Models
 │  ├─ 02_Contracts
 │  ├─ 03_Repositories
 │  ├─ 04_Extensions
 │  ├─ 05_Enhancers
 │  └─ 06_Exporters
 ├─ Azunt.SqlServer
 │  └─ dbo/Tables/Instructions.sql
 └─ Azunt.Web
    └─ Components/Pages/Instructions

DI registration

For quick testing without SQL Server:

builder.Services.AddDependencyInjectionContainerForInstructionApp(
    mode: InstructionServicesRegistrationExtensions.RepositoryMode.EfCoreInMemory);

For SQL Server:

builder.Services.AddDependencyInjectionContainerForInstructionApp(
    connectionString,
    InstructionServicesRegistrationExtensions.RepositoryMode.EfCoreSqlServer);

Compatibility overloads are also included:

builder.Services.AddDependencyInjectionContainerForInstructionApp(
    connectionString,
    InstructionRepositoryMode.EfCoreSqlServer);

Azunt.Web test pages

  • /Instructions
  • /InstructionsByTenant
  • /api/InstructionApi
  • /api/InstructionExport/Excel

SQL table

CREATE TABLE [dbo].[Instructions]
(
    [Id]        BIGINT         IDENTITY (1, 1) NOT NULL PRIMARY KEY,
    [Active]    BIT            DEFAULT ((1)) NULL,
    [CreatedAt] DATETIMEOFFSET NULL DEFAULT SYSDATETIMEOFFSET(),
    [CreatedBy] NVARCHAR(255)  NULL,
    [Name]      NVARCHAR(MAX)  NULL,
    [Content]   NVARCHAR(MAX)  NULL
);

About

Instruction template management module for ASP.NET Core and SQL Server.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages