C.J.
C.J.

Reputation: 3527

Database first, files extensions and their uses

When I use the wizard to generate the codes, it will also generate the following file extensions:

  1. xxxx.edmx
  2. xxxx.Designer.cs
  3. xxxx.edmx.diagram
  4. xxxx.tt

What are the purposes of all these files? Can I remove them? (If I'm not mistaken, in code-first approach, I really need the .cs classes only.

Upvotes: 0

Views: 922

Answers (1)

Hamid Pourjam
Hamid Pourjam

Reputation: 20754

.tt is T4 template file which generates your Entity Classes and Context.

.edmx.diagram contains information that is used by the Entity Designer to render a graphical display of the conceptual model.

.Designer.cs contains information that is used by the Entity Designer to render a conceptual model graphically and to define some conceptual model and design-time properties. after vs 2012 this file is usually useless and T4 code generators are used by default.

.edmx is an XML file that defines a conceptual model, a storage model, and the mapping between these models

Upvotes: 3

Related Questions