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

Fix for issue #1954 - not throwing on duplicate property #2077

Merged
merged 1 commit into from
May 1, 2015

Conversation

mikary
Copy link
Contributor

@mikary mikary commented Apr 27, 2015

Fix for #1954
Switching from event based to reference based propagation of property metadata changes to allow for full traversals when adding a base type to an existing tree.
@ajcvickers @anpete

@ghost ghost added the cla-already-signed label Apr 27, 2015
@@ -77,7 +71,13 @@ private EntityType(object typeOrName, Model model)

Model = model;

_foreignKeys = new SortedDictionary<IReadOnlyList<Property>, ForeignKey>(PropertyListComparer.Instance);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did anything change here? Why have these been moved?

@anpete
Copy link
Contributor

anpete commented Apr 28, 2015

Can you describe the change a little more? In particular, the "reference based propagation" approach.

@mikary mikary force-pushed the recursivePropertyCollision branch from 8fb4064 to 386a9a2 Compare April 29, 2015 23:06
@mikary
Copy link
Contributor Author

mikary commented Apr 29, 2015

Updated based on feedback

@mikary mikary force-pushed the recursivePropertyCollision branch from 386a9a2 to 22a4b39 Compare April 29, 2015 23:46
@@ -37,9 +37,11 @@ public class EntityType : Annotatable, IEntityType
private Key _primaryKey;
private EntityType _baseType;

public event EventHandler<Property> PropertyMetadataChanged;
private IEnumerable<EntityType> DerivedTypes => Model.EntityTypes.Where(t => t.BaseType == this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a method and rename to something like GetDirectDescendents

@mikary mikary force-pushed the recursivePropertyCollision branch from 22a4b39 to 49373ae Compare May 1, 2015 00:03
@anpete
Copy link
Contributor

anpete commented May 1, 2015

Not sure if there is anything outstanding here...

:shipit: if not.

@mikary mikary force-pushed the recursivePropertyCollision branch from 49373ae to 50cfff5 Compare May 1, 2015 22:30
@mikary mikary merged commit 50cfff5 into dev May 1, 2015
@mikary mikary deleted the recursivePropertyCollision branch May 1, 2015 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants