-
Notifications
You must be signed in to change notification settings - Fork 128
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
Question: Does RepoDB supports C# 9s Records? #708
Comments
Yes, it supports it both C#/F# and also the immutables. |
Just a follow-up question: Can the attributes like public record Test([Primary] Guid Id, string Name); |
Unfortunately, it is not possible. The only thing you can work around with this is to place the Primary attribute into the equivalent property of the ctor argument. |
But, since you are using the record type, then it is kind of impossible. We will assess and look at this as part of our enhancements. |
This is my current code: public record Test(Guid Id, string Name)
{
[Primary]
public Guid Id { get; } = Id;
} This works as expected and is fine as a workaround (at least for me)! |
does repoDB support Records?
also, all the current documentation uses the word "record" to refer to "database" records, which perhaps should be changed to "row"/"rows" as it now conflicts with the first class concept in C# and gives erroneous search results.
The text was updated successfully, but these errors were encountered: