-
-
Notifications
You must be signed in to change notification settings - Fork 3
Ver 640 #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Ver 640 #109
Conversation
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
Updated multiple packages to their latest versions: - MassTransit.RabbitMQ to 8.3.0 - Swashbuckle.AspNetCore to 6.9.0 - System.Text.Json to 8.0.5 - SmartFormat.NET to 3.5.1 - Azure.Identity to 1.13.0 - System.Linq.Dynamic.Core to 1.4.6 Removed MongoDB.Driver.Core.Extensions.OpenTelemetry package. Added MongoDB.Driver.Core.Extensions.DiagnosticSources source and GuidSerializer with GuidRepresentation.CSharpLegacy. Refactored IMongoRepository.cs, EndpointsBuilder.cs, and Extensions.cs for nullable context, method signatures, and formatting. Fixed a typo in JsonParser.cs exception message. Adjusted IRequestHandler and RequestDispatcher interfaces and classes for readability and formatting. Added WebApiOptions configuration in Extensions.cs. Improved formatting and readability across multiple files.
Refactored AzureInitializer for readability and removed unused code. Updated MongoDB.Driver to version 2.30.0 in Genocs.Persistence.MongoDb.csproj. Reformatted commented-out code in MongoDatabaseProvider.
- Entity class now inherits from Entity<Guid> instead of IEntity - Updated Id property in Entity<TPrimaryKey> to use nullable reference type - Refactored Equals method in Entity<TPrimaryKey> for null checks and type comparison - Id property in Equals method uses null-forgiving operator - IAggregateRoot now inherits from IAggregateRoot<Guid> instead of IEntity
Replaced IIdentifiable with IEntity across the codebase. Updated IEntity to include IsTransient method. Modified type parameters and interface inheritance for consistency. Updated MongoDB repository implementations to align with IEntity. Added comments and documentation for clarity. Changed using directives to reflect new namespace for IEntity.
Renamed properties to standardize naming conventions: - `CreationTime` to `CreatedAt` - `LastModificationTime` to `LastUpdate` - `LastModifierUserId` to `UpdatedBy` - `DeleterUserId` to `DeletedBy` - `DeletionTime` to `DeletedAt` - `LastModifierUser` to `UpdatedByUser` - `DeleterUser` to `DeletedByUser` Changed `CreatorUserId` to non-nullable. Updated `EntityAuditingHelper` and `EntityExtensions` for new names. Refactored `RepositoryBase` to use null-coalescing operator. Reformatted `AutoRepositoryTypesAttribute` for readability. Updated comments and documentation for clarity.
- Updated `BaseAggregate` to initialize `Id` and `CreatedAt`. - Refactored `Order` and `User` classes to inherit from `BaseAggregate`. - Made `CreatedAt` property read-only in `IHasCreationTime`. - Removed `class` constraint in `RepositoryBase`. - Added comments and reformatted methods in `SystemTextJsonHttpClientSerializer`, `IMessageToLogTemplateMapper`, and `SeqOptions`. - Updated `HandlerLogTemplate` to use nullable `string?`. - Replaced `IMongoRepository` with `IMongoDbBaseRepository` in various classes. - Removed `IMongoDbEntity` interface and several `MongoDbRepository` classes. - Introduced `IMongoDbBaseRepository`, `MongoDbBaseRepository`, `IMongoDbEntity`, and `MongoDbRepository` classes. - Updated multiple files to reflect repository structure changes.
- Updated `using` directives in `MongoDbController.cs`, `SubmitOrderConsumer.cs`, and `Program.cs` to use `Genocs.Persistence.MongoDb.Domain.Repositories`. - Modified `MongoDbRepository<TEntity>` to inherit from `MongoDbBaseRepositoryOfType<TEntity, ObjectId>`. - Removed `MongoDbRepositoryBaseOfEntityAndKey.cs` and moved its content to `MongoDbBaseRepositoryOfType.cs`. - Moved `IMongoDbRepository<TEntity>` to `Genocs.Persistence.MongoDb.Domain.Repositories` and updated its content. - Improved comment format in `IMongoDbSeeder.cs`. - Created `MongoDbBaseRepositoryOfType.cs` with the implementation of the repository base class for MongoDB.
Refactored the `Delete` method in `MongoDbBaseRepository.cs` to use `ArgumentNullException.ThrowIfNull(predicate)` for null checks, improving code readability and conciseness. Updated the `Get` method in `MongoDbBaseRepositoryOfType.cs` to use a conditional expression for throwing `EntityNotFoundException` when the entity is null, simplifying the logic.
Updated the following package versions: - `MassTransit.RabbitMQ` from `8.3.0` to `8.3.1` in `Genocs.Core.Demo.WebApi.csproj` and `Genocs.Core.Demo.Worker.csproj` - `Scrutor` from `5.0.1` to `5.0.2` in `Genocs.Core.csproj` - `System.Linq.Dynamic.Core` from `1.4.6` to `1.4.8` in `Genocs.QueryBuilder.UnitTests.csproj` - `Azure.Identity` from `1.13.0` to `1.13.1` in `Genocs.Secrets.AzureKeyVault.csproj`
Updated project version to 6.3.0 across multiple files and projects. Enhanced `Directory.Build.props` with new properties and item groups. Upgraded .NET SDK version in `global.json` to 8.0.10. Improved `JwtOptions` class with default values and documentation. Refactored `BaseAggregate`, `Order`, and `User` classes. Changed primary key types to `Guid` and updated property names. Removed `IsTransient` method from `IIdentifiable` interface. Updated project references to version 6.3.0. Enhanced `ServiceCollectionExtensions` for RabbitMQ configuration. Added JWT configuration in `Program.cs` and `appsettings.json`. Improved documentation and formatting in various files. Removed support for `netstandard2.1` in `Genocs.Core.csproj`. Updated multiple project files to reference `Genocs.Core` version 6.3.0. Refactored repository interfaces and classes for consistency. Removed unnecessary files from packaging process.
Removed references to `Genocs.Secrets.AzureKeyVault` and `Genocs.WebApi` from `Genocs.Core.Demo.WebApi.csproj`. Added `using System.Linq.Expressions` to `IMongoDbBaseRepository.cs` to support advanced querying.
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.
Deploment v6.4.0