You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, when I use the batch functionality with only one request in the POST body, it works. But when I use more than one request in the POST body, it occurs one exception of duplicate insert in the dictionary "HttpContext.Current.Items.Add("ODataQueryOperation.Current", operation)" that is present in class "Microsoft.Data.Services.Toolkit.QueryModel.ODataQueryProvider".
To solve this, I simple removed that line, because I noticed that is not used by nothing else.
Best regards,
Carlos Torrão
The text was updated successfully, but these errors were encountered:
I forget to tell another correction related with this issue in class "Microsoft.Data.Services.Toolkit.QueryModel.ODataContext".
public IQueryable CreateQuery()
{
if (!_queryableTypeNames.ContainsKey(typeof(T).FullName))
_queryableTypeNames.Add(typeof(T).FullName, typeof(T).AssemblyQualifiedName);
return new ODataQuery<T>(new ODataQueryProvider<T>(this.RepositoryFor));
}
I also had to add an IF to check if the _queryableTypeNames had already the key.
Hi, i'm having also another issue with the Batch feature of OData.
This feature let us make more than one OData request in a single HTTP POST request.
http://www.odata.org/documentation/odata-v2-documentation/batch-processing/
Basically, when I use the batch functionality with only one request in the POST body, it works. But when I use more than one request in the POST body, it occurs one exception of duplicate insert in the dictionary "HttpContext.Current.Items.Add("ODataQueryOperation.Current", operation)" that is present in class "Microsoft.Data.Services.Toolkit.QueryModel.ODataQueryProvider".
To solve this, I simple removed that line, because I noticed that is not used by nothing else.
Best regards,
Carlos Torrão
The text was updated successfully, but these errors were encountered: