Skip to content

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

@daryllabar

Description

@daryllabar

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);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions