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 string-based Property API that does not require a type #6303

Closed
ajcvickers opened this issue Aug 11, 2016 · 0 comments
Closed

Add string-based Property API that does not require a type #6303

ajcvickers opened this issue Aug 11, 2016 · 0 comments
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@ajcvickers
Copy link
Contributor

When creating a shadow property it is important to know the type of that property:

builder.Entity<Foo>().Property<int>("Id");

But if string API is actually being used to reference a CLR property, then it would be nice to be able to do this:

builder.Entity<Foo>().Property("Id");

This API would throw if the "Id" property is not found, but if it is found, then its type will be used.
This becomes especially nice when mapping fields, since this requires that the string API be used:

builder.Entity<Foo>().Property("_id");
@divega divega added this to the 1.1.0 milestone Aug 12, 2016
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Sep 2, 2016
@ajcvickers ajcvickers modified the milestones: 1.1.0-preview1, 1.1.0 Oct 15, 2022
@ajcvickers ajcvickers removed their assignment Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

2 participants