You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating entity model types for consumption by Auto-Entity, the @Entity decorator is required. Currently, that decorator in turn requires an IEntityOptions object to be passed with at least a modelName string property. For many simpler use cases, the model name may be the only property required.
This proposal recommends that the @Entity decorator be enhanced to support simpler usage, by requiring either a string for the model name, or the full IEntityOptions object, be passed in. This would allow simple usage as follows:
* Introduce to `defaultMaxAge` to IEntityOptions
+ Add EntityAge with predefined common ages for use with `defaultMaxAge`
* Update @entity decorator to support passing name in only or options or both
> Move key decorator tokens into entity-tokens.ts
> Extract entity decorator into its own file entity-decorator.ts
> Extract key decorator into its own file key-decorator.ts
* Update index/public api to reference all exports from new locations
* Added EntityAge enum to public api
* Removed all imports from '../..'
Issues #144#141
* Introduce to `defaultMaxAge` to IEntityOptions
+ Add EntityAge with predefined common ages for use with `defaultMaxAge`
* Update @entity decorator to support passing name in only or options or both
> Move key decorator tokens into entity-tokens.ts
> Extract entity decorator into its own file entity-decorator.ts
> Extract key decorator into its own file key-decorator.ts
* Update index/public api to reference all exports from new locations
* Added EntityAge enum to public api
* Removed all imports from '../..'
Issues #144#141
* Introduce to `defaultMaxAge` to IEntityOptions
+ Add EntityAge with predefined common ages for use with `defaultMaxAge`
* Update @entity decorator to support passing name in only or options or both
> Move key decorator tokens into entity-tokens.ts
> Extract entity decorator into its own file entity-decorator.ts
> Extract key decorator into its own file key-decorator.ts
* Update index/public api to reference all exports from new locations
* Added EntityAge enum to public api
* Removed all imports from '../..'
Issues #144#141
* Introduce to `defaultMaxAge` to IEntityOptions
+ Add EntityAge with predefined common ages for use with `defaultMaxAge`
* Update @entity decorator to support passing name in only or options or both
> Move key decorator tokens into entity-tokens.ts
> Extract entity decorator into its own file entity-decorator.ts
> Extract key decorator into its own file key-decorator.ts
* Update index/public api to reference all exports from new locations
* Added EntityAge enum to public api
* Removed all imports from '../..'
Issues #144#141
When creating entity model types for consumption by Auto-Entity, the
@Entity
decorator is required. Currently, that decorator in turn requires anIEntityOptions
object to be passed with at least amodelName
string property. For many simpler use cases, the model name may be the only property required.This proposal recommends that the
@Entity
decorator be enhanced to support simpler usage, by requiring either a string for the model name, or the fullIEntityOptions
object, be passed in. This would allow simple usage as follows:The text was updated successfully, but these errors were encountered: