UPON REFLECTION, I DECIDED THAT THIS POST WAS PRETTY MISGUIDED (must have been one of those days…).
So, for safety , I have removed it completely.
You *can* use T4 to customize the code generated for EntityObjects but if you begin with the T4 EntityObject template and replace .NET 4.0 specific logic with old style. FOr example ObjectSet & CreateObjectSet needs to be replaced by ObjectQuery and CreateQuery.
When I have some time, I will update this post to show how to do it.
Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!