Skip to content
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

Record Ids of string type #89

Open
sa2aie opened this issue Mar 26, 2024 · 2 comments
Open

Record Ids of string type #89

sa2aie opened this issue Mar 26, 2024 · 2 comments

Comments

@sa2aie
Copy link

sa2aie commented Mar 26, 2024

To remove the need of a reference to surrealdb.net in the domain model an id of string type should be handled as well as the Thing type. Maybe mapping id to any properties that has the [Key] attribute. This would make it easier to adopt existing EF models.

@Odonno
Copy link
Contributor

Odonno commented Mar 26, 2024

The original intention was to be agnostic to any data-oriented solution like EF and to follow the behavior of the existing client SDKs for SurrealDB. Note that the [Table] + [Key] combo will be supported alongside #10 and the upcoming Query Builder.

The main difference is that [Key] should be unique per table (to point to the record id), per SurrealDB internal behavior.

This is similar to the feature requested in #86

@sa2aie
Copy link
Author

sa2aie commented Mar 26, 2024 via email

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

No branches or pull requests

2 participants