Tuesday, August 23, 2011

.tt in Entity Framework

An .edmx drives our GUI for domain design. Sitting in the same folder there is a .tt file with otherwise the same name which expands to reveal the base objects in POCO form. The naming convention here is Foo.Bar.cs where Foo is the name of the object and Bar is the name of the .edmx and .tt. In the same folder there will also most often be a Foo.cs (for Foo.Bar.cs) which extends Foo for everything it needs beyond a plain old common languague runtime object shape. We call these extensions Partials.

No comments:

Post a Comment