Fix to avoid clearing related property on a delete if part of the key

Fix for inlineCount with CORS issue
Refactoring for OData saves