This post contains the code necessary when using EF 5 and POCO objects It also differs from the previous examples in that it handles EF models where then POCO field names do not map exactly with table names