Using Powerful T4 Templates
Entity Framework V1.0 feels and is an incomplete product published too soon. That is why you can use T4 templates that create different codes from EDMX files, which also support scalar-type stored procedures.
We use customizable templates with many modifications, so they create business-level objects, interfaces for IoC / TDD, as well as DAL and DAO. We get all of the EDMX files. Heck we even create enumerations, but they are created from real data in DB files, not EDMX.
You can find many T4 templates ... Here is one that does scalar stored procedures . But you might want to get the one that POCO actually does.
Robert Koritnik
source share