Skip to content

Issue / Locatability / ID Configuration As Feature#421

Merged
dncsvr merged 63 commits intomouseless:epic/locatabilityfrom
dncsvr:issue/locatability/id-configuration-as-feature
Jan 20, 2026
Merged

Issue / Locatability / ID Configuration As Feature#421
dncsvr merged 63 commits intomouseless:epic/locatabilityfrom
dncsvr:issue/locatability/id-configuration-as-feature

Conversation

@dncsvr
Copy link
Copy Markdown
Member

@dncsvr dncsvr commented Jan 13, 2026

Move identitiy configuration to a seperate feature to make
it overridable

Tasks

  • Add Id struct to Business.Abstractions
    • Implement IParsable<Id> for model binding
  • Add a Id Coding Style feature for identity configuration
    • Add implementation and extensions
    • Add json converter to serialize "id": string
    • Configure swagger schema to display "id": string
  • Move IdAttribute to Business
    • Add RouteName data
    • Add OrmConfig data
  • Use property with IdAttribute in other features
    • FindTargetUsingQueryContextConvention
    • SingleByIdConvention
    • TargetEntityExtensionFromRouteConvention
    • LookupEntityByIdConvention
    • LookupEntitiesByIdsConvention
    • ConvertToId and ConvertToIds helper
    • BuildSingleBy helper
    • RecordNotFoundException
    • DefaultThemeFeature route attribute configuration
  • Remove SingleByUnique coding style feature and related samples, tests
    and features
    • SingleByUnique feature and tests
    • Entity, SingleByEnum and SingleByUnique methods and tests
    • TargetEntityExtensionsFromRouteByUniquePropertiesConvention
  • Update samples
  • Update documentation

Additional Tasks

  • Fix MySql database feature not working

@dncsvr dncsvr self-assigned this Jan 13, 2026
@cihandeniz cihandeniz changed the title Issue / Locatability / Id Configuration As Feature Issue / Locatability / ID Configuration As Feature Jan 13, 2026
dncsvr added 23 commits January 13, 2026 11:33
- remove identity configuration from `AutoMap` feature
- remove `GuidIdAsIdentity` coding style feature
- update documentation
- add `Type` and `Key` properties to IdAttribute
- add type and idSuffix parameters to `ConvertToId` helpers
- add json converter for Id
- add schema filter for Id
- move id tests to Id feature folder
- add `IdAttribute` convention to `RichTransient` feature
- change Id to record struct and make constructor private
- improve GuidIdUserType
- add test for `Id`
- remove TODO comments from GuidIdUserType
@dncsvr dncsvr requested a review from cihandeniz January 16, 2026 10:17
@dncsvr dncsvr marked this pull request as ready for review January 16, 2026 10:17
- add `TryGetıdentifier` extension for TypeModel and return `IdentifierInfo`
- rename `Id` attribute to `Identifier`
- refactor features and conventions
- rename IdentifierInfo to IdInfo
- move GetIdInfo helpers to Business feature
- change GuidIdGenerator to extend GuidGenerator
- remove TypeCheck from GuidIdUserType
- change `ConvertToId` to use `IdInfo` as parameter
Comment thread core/src/Baked/CodingStyle/Id/GuidIdGenerator.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/GuidIdGenerator.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/GuidIdUserType.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/GuidIdUserType.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/GuidIdUserType.cs Outdated
Comment thread unreleased.md Outdated
Comment thread core/src/Baked/Orm/OrmExtensions.cs Outdated
Comment thread core/src/Baked/CodingStyle/RichTransient/RichTransientCodingStyleFeature.cs Outdated
Comment thread core/src/Baked/CodingStyle/RichEntity/FindTargetUsingQueryContextConvention.cs Outdated
Comment thread core/src/Baked/CodingStyle/RichEntity/FindTargetUsingQueryContextConvention.cs Outdated
Comment thread core/src/Baked/Orm/AutoMap/LookupEntitiesByIdsConvention.cs Outdated
- rename `GuidId` to `IdGuid`
- use Parse instead of TryParse in user type
- remove empty lines
- remove unnecessary Kebaberize
- improve Id coding style documentation
- update auto map orm feature documentation
- update unreleased
- restrict to Id typed properties as well as Id named properties
- update rich transient samples to use `Business.Id`
- move id tests to coding style folder
- validate identifier generator type
@dncsvr dncsvr requested a review from cihandeniz January 20, 2026 12:35
- rename `IdInfo.Name` to `IdInfo.PropertyName`
- use explicit Camelize for target name
- change id type of sample records to `Id`
- minor format edits
- minor format edits
- move TryGetIdInfo above
- refactor Guid id tests assertion
- minor format edits
- update Id coding style documentation
- update id coding style entity sample documentation
Comment thread core/playground/Baked.Playground.Application/Theme/Custom/CustomThemeFeature.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/IdCodingStyeFeature.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/IdCodingStyeFeature.cs Outdated
Comment thread core/src/Baked/CodingStyle/Id/IdCodingStyeFeature.cs Outdated
- move global usings to their own template file
- refactor IdMapperTemplate into single file
- fix format
@dncsvr dncsvr merged commit 762e49d into mouseless:epic/locatability Jan 20, 2026
9 checks passed
@dncsvr dncsvr deleted the issue/locatability/id-configuration-as-feature branch January 20, 2026 14:49
@dncsvr dncsvr mentioned this pull request Jan 20, 2026
8 tasks
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.

2 participants