I have found the solution. The following link helps those who want to create edmx file programmatically in VS 2012.
https://bitbucket.org/cincura_net/edmgen2/
This is a new thread. Will be helpful for those who found EdmxGen2 is not compatable with vs 2010.
Thanks, Sujith.S