Skip to content

Dev 2311 wip on template#356

Merged
PTKu merged 13 commits intodev-2311from
dev-2311-wip-on-template
Mar 15, 2024
Merged

Dev 2311 wip on template#356
PTKu merged 13 commits intodev-2311from
dev-2311-wip-on-template

Conversation

@PTKu
Copy link
Copy Markdown
Contributor

@PTKu PTKu commented Mar 15, 2024

No description provided.

PTKu added 13 commits February 23, 2024 09:54
…se the `MongoDbRepositorySettings` class when creating instances of the `Repository` class in the `Program.cs` file. This change simplifies the creation of `Repository` instances by encapsulating the settings in a single object. Another important change is the modification of the `Services` property in the `Unit` class of `StarterUnitTemplate.cs` and `UnitTemplateServices.cs` from a public settable property to a public get-only property, improving encapsulation and ensuring that the `Services` property can only be set within the `Unit` class.

List of changes:

1. Refactoring of the code to use the `MongoDbRepositorySettings` class when creating instances of the `Repository` class in the `Program.cs` file. This simplifies the creation of `Repository` instances by encapsulating the settings in a single object.

2. The `Services` property in the `Unit` class of `StarterUnitTemplate.cs` and `UnitTemplateServices.cs` has been changed from a public settable property to a public get-only property. This improves encapsulation and ensures that the `Services` property can only be set within the `Unit` class.

3. The `AXOpen.Security.Blazor` and `AXOpen.Security` projects in the solution file (`this.sln`) have been moved from the `Security` directory to the `security` directory. This change was likely made to adhere to a naming convention or to organize the project files in a certain way.

4. The `axosimple.StarterUnitTemplate` and `axosimple.UnitTemplate` namespaces are no longer being used in the `Program.cs` file. Instead, the `UnitServices` classes from these namespaces are being created directly. This simplifies the code and removes unnecessary using directives.

5. The `WebApplication.CreateBuilder(args)` method is now being called at the beginning of the `Program.cs` file. This change was likely made to set up the web application at the start of the program.

6. The `AXOpen.Data.MongoDb.Repository.InitializeFactory` method calls have been removed from the `Program.cs` file. This change was likely made because the `Repository` instances are now being created with the `MongoDbRepositorySettings` class, which does not require the factory to be initialized.
@PTKu PTKu merged commit 4d0e1e0 into dev-2311 Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant