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

Add Overload to RelatedEntitiesCollection.Add to Accept an IEnumberable of Entities #22

Open
daryllabar opened this issue Aug 30, 2016 · 0 comments

Comments

@daryllabar
Copy link
Owner

Currently the Add method is off of the DataCollection. Since the relationship is a single string value name, and the collection should be an enumerable it would take this:

var collection = new EntityCollection();
collection.Entities.AddRange(children);
entity.RelatedEntitites.Add(new Relationship("MyRelationshipName", collection);

And convert it to

entity.RelatedEntitites.Add("MyRelationshipName", children);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant