Skip to content

Decide on use of property setters vs fields #1526

Closed

Description

@rowanmiller

We currently use the backing field by convention in some scenarios. We should revisit if this is the right thing to do by convention, or whether we should just use setters and allow folks to swap to backing field access if they want to.

Activity

  1. added this to the 7.0.0 milestone on Feb 6, 2015
  2. modified the milestones: , 7.0.0 on Dec 7, 2015
  3. divega commented on Jan 21, 2016

    @divega
    Contributor

    Per #4314 by default we will only discover properties with public getters and public or non-public setters (with the exception of collection navigation properties which don't require setters).

    Customers should still be able to explicitly pull in properties into the model that would otherwise not be discovered and have EF use backing fields for materialization and fixup.

    I have created a separate issue for:

    Closing as I believe there is nothing else to track here.

  4. modified the milestones: , 1.0.0 on Oct 15, 2022
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

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions