VOOZH about

URL: https://www.nuget.org/packages/Galosys.Foundation.Actuator.EntityFrameworkCore/

⇱ NuGet Gallery | Galosys.Foundation.Actuator.EntityFrameworkCore 26.5.19.1




Galosys.Foundation.Actuator.EntityFrameworkCore 26.5.19.1

dotnet add package Galosys.Foundation.Actuator.EntityFrameworkCore --version 26.5.19.1
 
 
NuGet\Install-Package Galosys.Foundation.Actuator.EntityFrameworkCore -Version 26.5.19.1
 
 
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.19.1" />
 
 
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.19.1" />
 
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.19.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosys.Foundation.Actuator.EntityFrameworkCore, 26.5.19.1"
 
 
#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.19.1
 
 
#: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.19.1
 
Install as a Cake Addin
#tool nuget:?package=Galosys.Foundation.Actuator.EntityFrameworkCore&version=26.5.19.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 100 5/19/2026
26.5.18.1 98 5/18/2026
26.5.15.1 93 5/15/2026
26.5.12.3 97 5/12/2026
26.5.12.2 94 5/12/2026
26.4.27.1-rc1 97 4/26/2026
26.4.25.1-rc1 99 4/25/2026
26.4.22.2-rc7 110 4/22/2026
26.4.22.2-rc6 98 4/22/2026
26.4.22.2-rc4 98 4/22/2026
26.4.22.2-rc3 94 4/22/2026