Notes on software and the ideas behind it
Find the meaning
behind the code.
I’m Fred Yang. I write about software—how it works, why it behaves the way it does, and the ideas that make code easier to reason about.
Open the notebookWorking notes / 2026
Recently mapped
Architecture, reactivity, and the hidden relationships that shape frontend systems.
Entity Framework
How ObjectContext manage entities
Those objects were created by an internal process called object materialization, which takes the returned data and builds the relevant objects for you. Depending on the query, these could be EntityObjects, anonymous types, or...
Follow the thread
Entity Framework
Pros and Cons of Load and Include
You have some things to consider when choosing between the Load and Include methods. Although the Load method may require additional round trips to the server, the Include method may result in a large...
Follow the thread
Entity Framework
Debuging ObjectQuery
When you write query with ObjectQuery, it use IQueryable interface. Following extension function help your to debug ObjectQuery more easily.
Follow the thread
Entity Framework
Seperate your EMD to 3 files
When you generate your EMDX, you medata data is embedded in the output assembly as resource files. So you you connection string looks like "metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl" . But you have an option to save your...
Follow the thread
Entity Framework
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.
Follow the thread