public void AddLink(CommandContent content, string collection, KeyValuePair<string, object> associatedData)
        {
            if (associatedData.Value == null)
                return;

            var association = _schema.FindAssociation(collection, associatedData.Key);
            var associatedKeyValues = GetLinkedEntryKeyValues(association.ReferenceTableName, associatedData);
            if (associatedKeyValues != null)
            {
                AddDataLink(content.Entry, association.ActualName, association.ReferenceTableName, associatedKeyValues);
            }
        }
 public HttpCommand CreateUpdateCommand(string commandText, IDictionary<string, object> entryData, CommandContent entryContent, bool merge = false)
 {
     return new HttpCommand(merge ? RestVerbs.MERGE : RestVerbs.PUT, commandText, entryData, entryContent.ToString());
 }
 public HttpCommand CreateInsertCommand(string commandText, IDictionary<string, object> entryData, CommandContent entryContent)
 {
     return HttpCommand.Post(commandText, entryData, entryContent.ToString());
 }