private string GetEntityInstanceUriForStringKey(string keyValue)
        {
            var instance          = new EdmStructuredValueSimulator(this.typeWithStringKey, new[] { new KeyValuePair <string, IEdmValue>("Id", new EdmStringConstant(EdmCoreModel.Instance.GetString(true), keyValue)) });
            Uri entityInstanceUri = this.builder.BuildEntityInstanceUri(new Uri("http://odata.org/base/Products"), new Collection <KeyValuePair <string, object> > {
                new KeyValuePair <string, object>("Id", keyValue)
            }, instance.Type.FullName());

            return(entityInstanceUri.OriginalString);
        }
 private string GetEntityInstanceUriForStringKey(string keyValue)
 {
     var instance = new EdmStructuredValueSimulator(this.typeWithStringKey, new[] { new KeyValuePair<string, IEdmValue>("Id", new EdmStringConstant(EdmCoreModel.Instance.GetString(true), keyValue)) });
     Uri entityInstanceUri = this.builder.BuildEntityInstanceUri(new Uri("http://odata.org/base/Products"), new Collection<KeyValuePair<string, object>>{new KeyValuePair<string, object>("Id", keyValue)}, instance.Type.FullName());
     return entityInstanceUri.OriginalString;
 }