Repository navigation
feat: release Ling.Audit 2.0.1 - #2
Merged
Merged
Conversation
The changes introduce a robust auditing system for Entity Framework Core, enabling detailed tracking and logging of entity changes. Key additions include: - New projects: `Ling.Audit.EntityFrameworkCore` and `Ling.Audit.AspNetCore`. - Extension methods in `DbContextOptionsBuilderExtensions.cs` for auditing configurations. - `HttpAuditContextProvider` class for user context information. - `AuditDefaults` and `AuditOptions` classes for default configurations and options. - `EntityOperationType` enum for different entity operations. - `IAuditContextProvider<TUserId>` interface for audit user information. - `AuditIgnoreAttribute` and `AuditIncludeAttribute` for property auditing control. - `ModelBuilderExtensions` for global query filters and entity configurations. - `AuditConventionSetPlugin` and related classes for custom conventions. - `AuditInterceptor<TUserId>` for intercepting save operations. - `AuditModelCustomizer<TUserId>` for model customizations. - Various utility classes and extensions for type conversions and primary key retrieval. - Classes for representing audit entries, metadata, and change logs.
- Updated documentation and removed `Inherited = true` in `AuditIgnoreAttribute`. - Added constructor and `AnonymousOperations` property in `AuditIncludeAttribute`. - Renamed `DisabledSwitchKey` to `DisableAuditingSwitch` in `AuditDefaults`. - Updated method parameters and added `ConfigureAuditLogTableNames` in `ModelBuilderExtensions`. - Changed audit entry type from `AuditEntry` to `AuditEntityEntry` in `AuditInterceptor`. - Introduced `AnonymousOperations` in `AuditMetadata` for better configuration. - Added `ValueType` property in `AuditEntityChangeLog` and `AuditFieldChangeLog`. - Updated table names and comments in configuration classes for clarity. - Added helper methods in `ThrowHelper` for parameter validation. - Introduced `AuditEntityEntry` class for better tracking of audit information. - Updated conventions to use new annotation names in `AuditIgnoreAttributeConvention` and `AuditIncludeAttributeConvention`. These changes aim to enhance the flexibility and configurability of the auditing features while improving code readability and maintainability.
- Enhanced `MustNullAttributeAnalyzer` to analyze `InvocationExpressionSyntax` and method type parameters. - Changed `MustNullAttribute` access modifier to `internal`. - Added multiple test cases in `MustNullAttributeAnalyzerTests` to validate `MustNull` behavior in generic methods. - Updated test project names. - Modified `CSharpSourceGeneratorVerifier` to use regex for newline handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Merge and release
Please squash merge this PR so master receives one commit. After merge, publish GitHub release �2.0.1 to trigger the NuGet Trusted Publishing workflow.