In some cases we crave filtering data for user

We can visit most expressions using QueryPreprocessor

But some code statements bypass it

Would be great if QueryPreprocessor would be used to access to entity property and EntitySet through '.'

Sample

var item = Query.All<SomeEntity>().First(); // Already use QueryPreprocessor
var link = item.Link; // Lazy load, want QueryPreprocessor
var list = item.SomeList; // Another lazy load, want QueryPreprocessor too

asked Sep 29 at 07:42

Gushchin%20Anton's gravatar image

Gushchin Anton
7158


One Answer:

Hello Anton,

Lazy-load field prefetch mechanisms do not use expressions to load value but use lower APIs to form queries. It prevents us from giving such access.

answered 2 days ago

Alexey%20Kulakov's gravatar image

Alexey Kulakov
52715

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA