Added edm and support for Entity framework