Skip to content

Disable use of shadow state entities except for model snapshot #748

Closed

Description

@ajcvickers

Shadow state entities (that is entities without any backing CLR types) are not fully supported in many places; most notably query. We should fail early if code tries to use them. However, the Migrations model snapshot does make use of them, so this should be disabled.

Activity

  1. added this to the milestone on Oct 10, 2014
  2. modified the milestones: , 7.0.0 on Nov 25, 2014
  3. removed this from the 7.0.0 milestone on Feb 6, 2015
  4. removed their assignment
    on Feb 6, 2015
  5. added this to the 7.0.0 milestone on Feb 6, 2015
  6. 1 remaining item

  7. rowanmiller commented on Feb 6, 2015

    @rowanmiller
    Contributor

    @smitpatel ask @ajcvickers about this one

  8. lajones commented on Feb 6, 2015

    @lajones
    Contributor

    Note: Reverse Engineering uses shadow state entities too - to represent the entities for which it is about to output the code.

  9. rowanmiller commented on Feb 6, 2015

    @rowanmiller
    Contributor

    @lajones the plan is to throw from DbContext if you try and use a model with shadow entities to actually perform 'context stuff'. Core metadata will still support having them.

  10. rowanmiller commented on Feb 17, 2015

    @rowanmiller
    Contributor

    Decision was to remove shadow entities APIs from ModelBuilder but still allow them in core metadata. We'll block using a model with shadow entities at the DbContext level.

    As part of this we should remove the public virtual EntityBuilder Entity([NotNull] string name) from ModelBuilder

  11. modified the milestones: 7.0.0, on Jul 15, 2015
  12. 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