We both know that EF 6 we can easly created with Visual Studio 2013.
How to use the EF 6, and here as below the steps :
- Add New Item to project, “ADO .NET Entity Data Model”, connect to DB and add all db objects you want.
- Add New Item to project, “EF 5.x DbContext Generator” Or “EF 6 DbContext Generator”
- When created it will throw an error*, replace the string $edmxInputFile$ with .edmx file name. Save project.
const string inputFile = @”$edmxInputFile$”;
It will create POCO model files in the same folder as generator .tt template files are positioned.
4. Please overwrite the replacement token ‘$edmxInputFile$’ with the actual name of the .edmx file you would like to generate from. 1