O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a T4 template

Before we look at the Entity Framework-specific aspects of T4 templates, let’s get our feet wet with a simple example. We’ll start by adding a new template to the project:

Image

Add a new project item by choosing Add New Item from the Project menu or the Project context menu. Choose Text Template from the Add Item dialog:

Image
Image

Once you’ve named your template, click Add and Visual Studio will add the template and its (currently empty) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required