C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
4
Reply
What is T4 template and how it can useful
Manas Mohapatra
10y
10.1k
2
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
T4 stands for Text template transformation toolkit is template based code generation engine. So you can write C# code in T4 templates ( .tt is the extension) files and those c# codes execute to generate the file as per the written C# logic.It is used in Entityfreamework, MVC to create strongly type views.
Manas Mohapatra
10y
4
T4 is used within Microsoft in ASP.NET MVC for the creation of the views and controllers, ADO.NET Entity Framework for entity generation, and ASP.NET Dynamic Data.It is also used outside of Microsoft in projects such as Sub Sonic.T4 templating is also supported in Mono Development.
Arvind Upadhyay
10y
1
Basic this comes in EF first and MVC. T4- Text template transformation toolkit
Upendra Pratap Shahi
10y
1
http://www.c-sharpcorner.com/UploadFile/b182bf/what-is-t4-template-in-mvc/
Munesh Sharma
10y
0
What are the uses of "Using" keyword in C#?
What is Attribute Routing in MVC ?
Message