-
Notifications
You must be signed in to change notification settings - Fork 10
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] Expose 'keys' & 'gens' as static props per each compiled CDS entity #294
Comments
Hi Siarhei, I think providing a static One thing that has bitten me in the past for similar scenarios is inheritance. Explicitly listing all keys would probably require The other part of your suggestion I am less sure about. I don't seem to see a static Best, |
Hi Siarhei, I have put up a PR that introduces a static Best, |
Note to self: the static class Book {
createdAt: string & { default?: string } // could be some utility type, like Key<...>
} |
Description
I need to know which CDS property names are marked as CDS keys & which are auto-generated if to not provide them explicitly.
Suggested Solution
CDS entity with primary key & auto-generated props:
It has to be compiled into:
Alternatives
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: