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 Cannot be Used without Having Default ctor in LINQ #796

Open
emreyigit opened this issue Feb 23, 2023 · 0 comments
Open

record Cannot be Used without Having Default ctor in LINQ #796

emreyigit opened this issue Feb 23, 2023 · 0 comments
Labels
Jira Creates a corresp. Jira issue in the APIs project. Type: Enhancement Code enhancement.

Comments

@emreyigit
Copy link
Collaborator

LINQ relies on default ctor. If record doesn't provide a default ctor, it fails. During expression bindings, we may look for alternative ctors and use one of them at least with empty objects. Later, column projector can assign the properties.

@emreyigit emreyigit added Type: Enhancement Code enhancement. Jira Creates a corresp. Jira issue in the APIs project. labels Feb 23, 2023
@emreyigit emreyigit added this to the 5.3.0 milestone Feb 23, 2023
@emreyigit emreyigit modified the milestones: 5.3.0, 5.4.0 Jun 9, 2023
@emreyigit emreyigit removed this from the 5.4.0 milestone Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jira Creates a corresp. Jira issue in the APIs project. Type: Enhancement Code enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant