Galosys.Foundation.Actuator.EntityFrameworkCore 26.5.12.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Galosys.Foundation.Actuator.EntityFrameworkCore --version 26.5.12.2
                    
NuGet\Install-Package Galosys.Foundation.Actuator.EntityFrameworkCore -Version 26.5.12.2
                    
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="Galosys.Foundation.Actuator.EntityFrameworkCore" Version="26.5.12.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Galosys.Foundation.Actuator.EntityFrameworkCore" Version="26.5.12.2" />
                    
Directory.Packages.props
<PackageReference Include="Galosys.Foundation.Actuator.EntityFrameworkCore" />
                    
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 Galosys.Foundation.Actuator.EntityFrameworkCore --version 26.5.12.2
                    
#r "nuget: Galosys.Foundation.Actuator.EntityFrameworkCore, 26.5.12.2"
                    
#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 Galosys.Foundation.Actuator.EntityFrameworkCore@26.5.12.2
                    
#: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=Galosys.Foundation.Actuator.EntityFrameworkCore&version=26.5.12.2
                    
Install as a Cake Addin
#tool nuget:?package=Galosys.Foundation.Actuator.EntityFrameworkCore&version=26.5.12.2
                    
Install as a Cake Tool

Galosys.Foundation.Actuator.EntityFrameworkCore

Actuator 模块的 EFCore 集成,提供日志实体的数据库映射和仓储实现。

功能概述

组件 说明
AuditLogEntityTypeConfiguration AuditLog 表映射(lc.lc_audit_log
LoginLogEntityTypeConfiguration LoginLog 表映射(lc.lc_login_log
RequestLogEntityTypeConfiguration RequestLog 表映射(lc.lc_api_request_log
AuditLogRepository<TContext> AuditLog EFCore 仓储实现
LoginLogRepository<TContext> LoginLog EFCore 仓储实现
RequestLogRepository<TContext> RequestLog EFCore 仓储实现(含批量写入)

Quick Start

最小化配置

// 注册 Actuator(Channel + Consumer)+ EFCore(Repository 实现)
services.AddActuatorEFCore<MyDbContext>();

该方法内部自动调用 services.AddActuator() 并注册三个仓储实现。

表结构

实体 表名 Schema
AuditLog lc_audit_log lc
LoginLog lc_login_log lc
RequestLog lc_api_request_log lc

自动配置

EntityTypeConfigurationBase 基类自动处理:

  • 蛇形命名(属性名 → 列名)
  • OccurredOn / LoginAt / CreatedAt 索引
  • OperatorId 索引(AuditLog)

手动注册(高级场景)

services.AddActuator();
services.AddScoped<IAuditLogRepository, AuditLogRepository<MyDbContext>>();
services.AddScoped<ILoginLogRepository, LoginLogRepository<MyDbContext>>();
services.AddScoped<IRequestLogRepository, RequestLogRepository<MyDbContext>>();
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
26.5.19.1 92 5/19/2026
26.5.18.1 94 5/18/2026
26.5.15.1 89 5/15/2026
26.5.12.3 94 5/12/2026
26.5.12.2 92 5/12/2026
26.4.27.1-rc1 93 4/26/2026
26.4.25.1-rc1 98 4/25/2026
26.4.22.2-rc7 108 4/22/2026
26.4.22.2-rc6 95 4/22/2026
26.4.22.2-rc4 96 4/22/2026
26.4.22.2-rc3 89 4/22/2026