Jul 11, 2009

Object Service (ObjectContext, ObjectQuery and EntityObject)

The core objects of object service is ObjectContext and ObjectQuery and EntityObject. You can think of ObjectContext as entity repository. The repository is responsible to Insert/Update/Delete/Select entity.

To select entity, ObjectContext actually create ObjectQuery, which implement IQueryable. The object return from ObjectQuery, is not normal object, but EntityObject. Entity has EntityKey and EntityState.

No comments:

Post a Comment