-
Notifications
You must be signed in to change notification settings - Fork 7
Issue / Locatability / Locator System #433
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
base: epic/locatability
Are you sure you want to change the base?
Issue / Locatability / Locator System #433
Conversation
- rename id tests to `ConfiguringEntityIds `
| that property to entity id route parameter so that entites can be found through | ||
| unique properties as well as their ids. For instance, if entity has | ||
| `SingleByName` then its id route parameter is updated from `{id}` to | ||
| `{idOrName}`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: remove this coding style from docs, it was removed from code. remove also from recipes
| { | ||
| features.Add(new Playground.Override.DataAccess.MappingsDataAccessOverrideFeature()); | ||
| features.Add(new Playground.Override.Domain.CustomAttributeDomainOverrideFeature()); | ||
| features.Add(new Playground.Override.Id.MapingIdsOverrideFeature()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overrides are related to Layers, not features or coding styles. so this should bi under DataAccess. i think MappingDataAccessOverrideFeature exists exactly for overrides like this.
- reanem feature to `TransientBinding` - refactor rich transient and entity to configure Locatable attribute - temporarily remove entity subclass samples
… !!! BUILD FAILING !!!
- implement service adde template for adding locators - add additional conventions for entity sub class to fix route and parameter - fix locator adder template - minor edits and refactoring
- remove commented code
Provide a solution for improving locating transients and entities
Notes
inherit all there is from Rich Transient, and add lookup and nhibernate init
logic.
become locatable, and all query apis, not because they are entities, because
they are rich transients.
Tasks
TransientBinding🤔Locatableattribute when exists otherwise useInitializerfor target andparameter lookup
Locatableotherwise add initializer paramsto query
ILocator<>interfaceRichTransientfeature to configureLocatableattribute andEntityLocator<>implementation forRichEntityRichEntityfeature to configureLocatableattributeLocatorimplementations forRichTransientEntitySubclassViaCompositionto configureLocatableattributeAdditional Tasks
Guid, assignedstringand auto-incrementuintoptions
Id, convention will look for aproperty with a type that is assignable to an id interface such as
IIdId