-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature / Rich Transients #187
Merged
Merged
Conversation
This file contains 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
- use `RichTransientAttribute` for markin classes - add pluralization
- rename sample classes - edit routing rich transients test cases - add `HasPublicDataAttribute` to mark types with public properties
- remove `RichTransient` attribute
- add find target from initializer convention - change convention orders to execute before entity and command conventions - edit routing rich transients samples and test
- add lookup transients by id conventions
- remove `HasPublicData` - use `CSharpFriendlyFullName` for id types - fix typos
cihandeniz
reviewed
Oct 29, 2024
...aked.Recipe.Service.Application/CodingStyle/RichTransient/RichTransientCodingStyleFeature.cs
Outdated
Show resolved
Hide resolved
...aked.Recipe.Service.Application/CodingStyle/RichTransient/RichTransientCodingStyleFeature.cs
Outdated
Show resolved
Hide resolved
...aked.Recipe.Service.Application/CodingStyle/RichTransient/LookUpTransientsByIdsConvention.cs
Outdated
Show resolved
Hide resolved
.../Baked.Recipe.Service.Application/CodingStyle/RichTransient/LookUpTransientByIdConvention.cs
Outdated
Show resolved
Hide resolved
...Recipe.Service.Application/CodingStyle/RichTransient/InitializeUsingIdParameterConvention.cs
Outdated
Show resolved
Hide resolved
....Recipe.Service.Application/CodingStyle/RichTransient/FindTargetFromInitializerConvention.cs
Outdated
Show resolved
Hide resolved
cihandeniz
reviewed
Oct 29, 2024
...Recipe.Service.Application/CodingStyle/RichTransient/InitializeUsingIdParameterConvention.cs
Outdated
Show resolved
Hide resolved
test/recipe/Baked.Test.Recipe.Service/CodingStyle/RichTransient/RichTransientWithData.cs
Outdated
Show resolved
Hide resolved
test/recipe/Baked.Test.Recipe.Service.Test/CodingStyle/RoutingRichTransients.cs
Outdated
Show resolved
Hide resolved
- remove orm dependency in rich transient conventions - fix indentation - use `string` as parameter and return type for rich transient samples - use `find` instead of `initialize` for id parameter description
cihandeniz
reviewed
Oct 29, 2024
.../Baked.Recipe.Service.Application/CodingStyle/RichTransient/LookUpTransientByIdConvention.cs
Outdated
Show resolved
Hide resolved
...aked.Recipe.Service.Application/CodingStyle/RichTransient/LookUpTransientsByIdsConvention.cs
Outdated
Show resolved
Hide resolved
...Recipe.Service.Application/CodingStyle/RichTransient/InitializeUsingIdParameterConvention.cs
Outdated
Show resolved
Hide resolved
cihandeniz
reviewed
Oct 30, 2024
.../Baked.Recipe.Service.Application/CodingStyle/RichTransient/LookUpTransientByIdConvention.cs
Outdated
Show resolved
Hide resolved
...aked.Recipe.Service.Application/CodingStyle/RichTransient/LookUpTransientsByIdsConvention.cs
Outdated
Show resolved
Hide resolved
- split `TargetEntityFromRoute` convention to `AddIdParameterToRoute` and `FindTargetUsingQueryContext` conventions
- apply single by unique for only target parameters - merge rich entity add parameter and find target conventions - edit diagnostic extensions to return full source if if no node is found
- add compiler exception message test cases
cihandeniz
approved these changes
Oct 31, 2024
cihandeniz
approved these changes
Oct 31, 2024
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.
Introduce
RichTransientsCodingStyleFeature
for a better transient objectexperience.
entities
Tasks
RichTransients
coding style featureWith
method having a singleid
parameterGet
if there are any public properties and return object as dtoAdditional Tasks
main
CommandPattern
to here, as itis more relevant
etc. to move them under this coding style.
Entity
case: single by id