As i understand from manual it is impossible to use Query.All in disconnectedstate?.. Only Query.Single supported.

How do You recommend to check is some data already exists in disconnectedstate?

I planned to cache some classifiers on wcf client side but i have no idea how to load them without knowing the key.

Thanks in advance.

asked Jan 13 '11 at 06:13

Janosh's gravatar image

Janosh
47101015

I'll try to use DisconnectedState.All<t>

(Jan 14 '11 at 12:28) Janosh Janosh's gravatar image

One Answer:

You should use the following methods for this:

  • DisconnectedState.GetEnumerator()
  • DisconnectedState.All<TEntity>()
  • DisconnectedState.AllKeys()
  • DisconnectedState.AllKeys(bool includingRemovedEntityKeys)
  • DisconnectedState.GetPersistenceState(Key key)

answered Jan 14 '11 at 15:08

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

As i understand from manual it is impossible to use Query.All in disconnectedstate

You can, but if you'll fetch all the entities, you'll get all the them cached there.

(Jan 14 '11 at 15:09) Alex Yakunin Alex%20Yakunin's gravatar image
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