var entityTypeConfig = builder.EntitySet<SomeType>("SomeType").EntityType;<br/>entityTypeConfig.Property(x => x.SomeField);<br/>entityTypeConfig.Property(x => x.SomeField2).IsNotFilterable().IsNonFilterable();
I'm far from an expert on this, but having poked around this issue before I can tell you what I gathered:
If you store your database locally, this is doable. Do some google searching and you should be able to find a couple community posts about it. But if you're hosted with BB, this is something that was a feature, but BB decided to stop allowing for security reasons (there was a data breach a few years ago). The only option I've been able to find for accessing hosted data is through the API endpoints.
I don't know if they're working on finding a way to reinstate this feature securely or not, but I agree that oData would be far more resource and time efficient.