I found the source of problem.
I'm using breeze with web api and EFContextProvider. For security purposes I added attribute Queryable above my method:
[HttpGet]
[Queryable(MaxExpansionDepth = 3)]
public IQueryable<Account> Accounts()
{
return _contextProvider.Context.Accounts;
}
I thought that breeze won't conflict with this attribute, but when I removed attribute, everything started to work fine. Also same attribute broke inlineCount for other IQueriable source.