Reputation: 49
I want to create an ADO.NET model for Azure Database and it creates with success but I can't see the models.
This is how it looks in Visual Studio:
And still in my folder the models are created but I don't see them.
Can you help me?
Upvotes: 1
Views: 193
Reputation: 6216
The EDMX is a representation of the model - but you have to run the .tt files in order for them to analyze your EDMX to create the model.
UPDATE: The .tt file should be under the .edmx file in your Solution Explorer.
To do this, right-click the .tt and chose to Run (can't remember exactly what the command is) but it will execute your changes to the EDMX and create the various .cs or .vb classes for you. In your case, it's the Employee.Context.tt file that you need to run/execute.
Be careful if you change the generated .cs or .vb files that are created, as if you re-run the .tt file, it'll drop and recreate your code, potentially losing any customisations.
UPDATE: I've found you this really good explanation of each stage which might help.
Hope this helps.
Upvotes: 1