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

Add support for record constructor parameter annotations #44

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

kzu
Copy link
Member

@kzu kzu commented Jun 23, 2021

When using C# 9 records for storage (super convenient!), you typically don't declare the properties explicitly, but leverage the concise syntax instead, so now you can do:

[Table("Books")]
public record Book([RowKey] string ISBN, [PartitionKey] string Author, string Title);

Fixes #43

When using C# 9 records for storage (super convenient!), you typically don't declare the properties explicitly, but leverage the concise syntax instead, so now you can do:

```
public record Book([RowKey] string ISBN, [PartitionKey] string Author, string Title);
```

Fixes #43
@kzu kzu merged commit 69390f5 into main Jun 23, 2021
@kzu kzu deleted the feature/records branch June 23, 2021 18:36
@devlooped devlooped locked and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow annotating record constructor parameters with PartitionKey/RowKey
1 participant