Where Does Object Services Fit into the Framework?Processing QueriesParsing Queries: From Query to Command Tree to SQLUnderstanding Query Builder MethodsQuery builder methods and EntitySetsFrom query builder methods to Entity SQL expressionsCombining LINQ methods and query builder methodsAnalyzing a Query with ObjectQuery Methods and PropertiesObjectQuery.ToTraceStringObjectQuery.CommandTextObjectQuery.ParametersObjectQuery.ContextExecuting Queries with ToList, ToArray, First or SingleExecuting Queries with the Execute MethodOverriding a Default Connection with ObjectContext.ConnectionHandling Command Execution with EntityClientMaterializing ObjectsManaging Object StateUsing EntityKey to Manage ObjectsMerging Results into the Cache with MergeOptionsInspecting ObjectStateEntryMaintaining EntityStateManaging RelationshipsAttaching and Detaching Objects from the ObjectContextObjectContext.AddObject and ObjectSet.AddObjectObjectContext.Attach and ObjectSet.AttachObjectContext.AttachToTaking Control of ObjectStateObjectContext MethodsObjectStateManager MethodsObjectStateEntry State Methods for Managing StateObjectSet State MethodsSending Changes Back to the DatabaseObjectContext.SaveChangesSaveChanges returns an integerSaveChanges refreshes the state of tracked entitiesAffecting SaveChanges Default BehaviorOverriding SaveChanges CompletelyData Validation with the SavingChanges EventConcurrency ManagementOptimistic concurrencyConcurrencyModeOptimisticConcurrencyExceptionTransaction SupportImplementing Serialization, Data Binding, and MoreObject Services Supports XML and Binary SerializationObjectContext, ObjectStateManager, and ObjectStateEntry are not serializableAutomatic serializationXML and DataContract serializationBinary serializationSerialization and object stateExplicit serializationObject Services Supports Data BindingSummary