Skip to content

Only discover properties with public getter and public/private/etc. setter #4314

Closed

Description

@AndriySvyryd
No description provided.

Activity

  1. self-assigned this
    on Jan 14, 2016
  2. rowanmiller commented on Jan 14, 2016

    @rowanmiller
    Contributor

    My understanding from our discussion was that we would go back to the EF6 rules - i.e. only pull in properties with a getter and setter where at least one of them is public. The exception being collection navigations - where a setter is not required.

    @divega @ajcvickers was that your understanding too?

  3. AndriySvyryd commented on Jan 14, 2016

    @AndriySvyryd
    MemberAuthor

    I thought we decided that we will keep discovering private properties.

  4. ajcvickers commented on Jan 15, 2016

    @ajcvickers
    Contributor

    I also think we decided to keep discovering private properties, but I might be remembering wrong. We've had so many different discussions! Fundamentally, the biggest problem is mapping read-only properties, so we should stop doing that. Also, probably mapping private navigation properties doesn't make much sense.

  5. rowanmiller commented on Jan 15, 2016

    @rowanmiller
    Contributor

    Yeah I'm pretty sure we decided to "go back to the same rules we had in EF6". The reasons being that we know they worked well in most cases and we now have an easy way to bring private properties into the model (using the string overload of Property), which was hard in EF6.

  6. ajcvickers commented on Jan 15, 2016

    @ajcvickers
    Contributor

    I can go with that. :-)

  7. ajcvickers commented on Jan 15, 2016

    @ajcvickers
    Contributor

    So, EF6 rules, except that we never exclude a property because the type of the property "can't be mapped".

  8. rowanmiller commented on Jan 15, 2016

    @rowanmiller
    Contributor

    Triage: Decision is that we map properties with a getter and a setter when the getter is public (the setter does not have to be public). The one exception is that collection navigation properties do not need to have a setter at all. This is slightly simplified from the EF6 rules. The one deviation from the EF6 rules is that we don't just silently ignore properties that we can't find a type mapping for - we continue to throw saying that the property can't be mapped.

  9. added this to the milestone on Jan 15, 2016
  10. changed the title [-]Don't discover read-only properties[/-] [+]Only discover properties with public getter and public/private/etc. setter[/+] on Jan 20, 2016
  11. modified the milestones: , 1.0.0 on Oct 15, 2022
  12. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions