You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disable use of shadow state entities except for model snapshot #748
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.
@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.
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
Activity
1 remaining item
rowanmiller commentedon Feb 6, 2015
@smitpatel ask @ajcvickers about this one
lajones commentedon Feb 6, 2015
Note: Reverse Engineering uses shadow state entities too - to represent the entities for which it is about to output the code.
rowanmiller commentedon Feb 6, 2015
@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.
rowanmiller commentedon Feb 17, 2015
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)fromModelBuilder