protected void Create(T aggreg, XElement entitySchema, DirectRelationship parentRelationship, Dictionary <string, object> parentPropertyValues, string path, string entity, XElement schema) { CreateAggregation <T> createAggregation = CreateCreateAggregation(default(T), entity, schema); createAggregation.Split(aggreg, entitySchema, parentRelationship, parentPropertyValues, path); Commands.AddRange(createAggregation.ExecuteCommands); }
protected IEnumerable <ExecuteCommand <T> > GetCreateAggregationCommands(IEnumerable <T> children, XElement childEntitySchema, ManyToManyRelationship manyToManyRelationship, Dictionary <string, object> parentPropertyValues, string childrenPath, string parentEntity, XElement schema) { CreateAggregation <T> createAggregation = CreateCreateAggregation(default(T), parentEntity, schema); createAggregation.Split(children, childEntitySchema, manyToManyRelationship, parentPropertyValues, childrenPath); return(createAggregation.ExecuteCommands); }