I think OData needs long (Int64) values in Url to be appended with L.
Try this and let us know.
public TransactionCartItem GetTransactionCartItemByTransactionNumber(long transactionNumber)
{
var query =
this.ClientRepositories
.Context
.CreateQuery<TransactionCartItem>("GetTransactionCartItemByTransactionNumber")
.AddQueryOption("transactionNumber", transactionNumber + "L")
.FirstOrDefault();
return query;
}
got the documentation.. the Edm.Int64 seems to need a trailing L at the end. http://www.odata.org/documentation/odata-version-2-0/overview/#AbstractTypeSystem