Galosys.Foundation.Actuator.EntityFrameworkCore
26.7.18.2
dotnet add package Galosys.Foundation.Actuator.EntityFrameworkCore --version 26.7.18.2
NuGet\Install-Package Galosys.Foundation.Actuator.EntityFrameworkCore -Version 26.7.18.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.7.18.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.7.18.2" />
<PackageReference Include="Galosys.Foundation.Actuator.EntityFrameworkCore" />
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.7.18.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosys.Foundation.Actuator.EntityFrameworkCore, 26.7.18.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.7.18.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.7.18.2
#tool nuget:?package=Galosys.Foundation.Actuator.EntityFrameworkCore&version=26.7.18.2
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 | 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.
-
net10.0
- Galosys.Foundation.Actuator (>= 26.7.18.2)
- Galosys.Foundation.EntityFrameworkCore (>= 26.7.18.2)
- microsoft.entityframeworkcore (>= 10.0.9)
- microsoft.entityframeworkcore.relational (>= 10.0.9)
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.7.18.2 | 0 | 7/18/2026 |
| 26.7.18.1 | 19 | 7/18/2026 |
| 26.7.17.1 | 33 | 7/17/2026 |
| 26.7.14.1 | 81 | 7/14/2026 |
| 26.7.13.1 | 84 | 7/13/2026 |
| 26.7.12.1 | 98 | 7/12/2026 |
| 26.7.11.1 | 93 | 7/11/2026 |
| 26.7.10.2 | 90 | 7/10/2026 |
| 26.7.10.1 | 93 | 7/10/2026 |
| 26.7.7.2 | 97 | 7/7/2026 |
| 26.7.7.1 | 100 | 7/7/2026 |
| 26.7.2.1 | 99 | 7/2/2026 |
| 26.7.1.2 | 91 | 7/1/2026 |
| 26.5.19.1 | 107 | 5/19/2026 |
| 26.5.18.1 | 106 | 5/18/2026 |
| 26.5.15.1 | 102 | 5/15/2026 |
| 26.5.12.3 | 105 | 5/12/2026 |
| 26.5.12.2 | 100 | 5/12/2026 |
| 26.4.27.1-rc1 | 99 | 4/26/2026 |
| 1.0.0 | 91 | 7/7/2026 |
Loading failed