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) ...

Get Fluent Entity Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.