Skip to content
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

EntityFramework ValueGenerator #1009

Closed
wants to merge 7 commits into from
Closed

EntityFramework ValueGenerator #1009

wants to merge 7 commits into from

Conversation

wangkanai
Copy link
Owner

Renamed 'DateTimeOffsetNowGenerator' to 'NowDateTimeOffsetGenerator' and 'DateTimeNowGenerator' to 'UtcDateTimeGenerator', aligning naming with their respective functionality. Also, added 'NowDateTimeGenerator' and 'UtcDateTimeOffsetGenerator' for generating current local and UTC dates respectively. Furthermore, unnecessary folder reference in test project file has been removed. And lastly, added corresponding unit tests for new date generators.

The namespaces for 'DateTimeOffsetNowGenerator' and 'DateTimeNowGenerator' have been updated. They are moved from 'Wangkanai.EntityFramework.Generators' to 'Wangkanai.EntityFramework' to improve namespace hierarchy.
A new folder called "Generators" has been added to the Wangkanai.EntityFramework.Tests.csproj project file. This will facilitate organizing the test code.
Renamed 'DateTimeOffsetNowGenerator' to 'NowDateTimeOffsetGenerator' and 'DateTimeNowGenerator' to 'UtcDateTimeGenerator', aligning naming with their respective functionality. Also, added 'NowDateTimeGenerator' and 'UtcDateTimeOffsetGenerator' for generating current local and UTC dates respectively. Furthermore, unnecessary folder reference in test project file has been removed. And lastly, added corresponding unit tests for new date generators.
@wangkanai wangkanai self-assigned this May 15, 2024
@wangkanai wangkanai added this to the 8.0 milestone May 15, 2024
… class

The JetBrains.Annotations package has been added to the EntityFramework tests, with references updated in Usings.cs and the test project file. Furthermore, the NowDateTimeOffsetGeneratorTests class has been introduced, which tests the functionality of the NowDateTimeOffsetGenerator class. This will strengthen the testing infrastructure of DateTimeOffset value generation mechanisms within the project.
…ests

The JetBrains.Annotations package was removed from the Wangkanai.EntityFramework.Tests project in this commit. Additionally, a minor change was made in _Imports.razor file of the blazor-wasm sample by adjusting the declaration order of using directives.
The Next method in NowDateTimeGenerator is simplified to a expression-bodied method. An async counterpart, NextAsync is also added that is capable to return a ValueTask<DateTime> object. These changes cater for synchronicity more effectively.
The commits included the removal of all the components, pages, styles, configs, and settings from both the blazor-auto and the blazor-wasm samples. The changes indicate a major cleanup or a shift in project structure.
@wangkanai wangkanai closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant