Stories recently tagged with 'T4'

ASP.NET MVC Localization: Generate resource files and localized views (ruijarimba.wordpress.com)

submitted by ruijarimbaruijarimba(61) 8 months, 27 days ago

ASP.NET MVC Localization: Generate resource files and localized views using custom templates read more...

add a comment |category: |Views: 11

tags: another

Entity Framework and T4: Generate Query Objects on the fly, part 1(ruijarimba.wordpress.com)

submitted by ruijarimbaruijarimba(61) 9 months, 3 days ago

Generate Query Objects on the fly for your Entity Framework entities using T4 templates. Don’t worry about LINQ, let the objects do all the work for you. read more...

add a comment |category: |Views: 12

tags: another

Entity Framework: Making changes to the T4 Templats(www.dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 11 months, 19 days ago

Taking a look at how Entity Framework uses T4 Templates (Text Template Transformation Toolkit) when building out the entity model. We will first learn how EF is using the templates, we will then learn how to view and access these templates and finally we will take a look at how to modify these templates to meet your own specific needs. read more...

add a comment |category: |Views: 6

tags: another

Repository and Unit of Work T4 Template for Entity Framework(blogs.microsoft.co.il)

submitted by gilfgilf(2123) 1 year, 7 months ago

Two weeks ago I wrote the Revisiting the Repository and Unit of Work Patterns with Entity Framework post. One thing that I thought would be nice was to have an automatic code generation that will help me to build these patterns without sweating. So I sat down and created a T4 Template to auto generate the same patterns. read more...

add a comment |category: |Views: 250

tags: another

Entity Framework T4 Enhancements Part 1, Generate an IDatabase(matthidinger.com)

submitted by mhidingermhidinger(65) 1 year, 9 months ago

This post is part of a series on customizing the Entity Framework T4 templates I have been using EF4 for a little while now, and have been taking advantage of the code-generation extensibility afforded to us by T4 templates. This series of posts will describe the enhancements I have made to the default T4 template, and how you can take advantage of this functionality yourself. •Part 1 – Generate an IDatabase interface to represent your Data Context read more...

add a comment |category: |Views: 34

tags: another

Reading a Xml File in T4 Templates(blogs.microsoft.co.il)

submitted by gilfgilf(2123) 2 years, 1 month ago

After I wrote the post about the use of T4 templates in EF4, I played with them for a while (not in EF but generally with T4 templates). In an old project that I’ve created almost 3 years ago which automated the use of lookup tables I had an enum. That enum was meant to be the connection between an Xml node names and was heavily used in the application. read more...

add a comment |category: |Views: 35

tags: another

T4CSS: A T4 Template for .Less CSS With Compression(haacked.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 2 months ago

Pain is often a great motivator for invention, unless you become dull to the pain. I think CSS is one of those cases where there’s a lot of pain that we as web developers often take in stride. Fortunately not everyone accepts that pain and efforts such as LESS are born. As the home page states However, sometimes I just want to have static CSS files. So I decided to write a T4 template for .less. Simply drop it in a folder that contains .less files and it will generate a .css file for each .less file. read more...

add a comment |category: |Views: 71

tags: another

T4 Toolbox Offers Alternate LINQ to SQL Class Generator: Explained(goneale.com)

submitted by gonealegoneale(1055) 2 years, 6 months ago

If you aren’t up with the know, T4 Templates or the Text Template Transformation Toolkit is a Microsoft template-driven code generation toolkit baked right into Visual Studio 2008 (and available in Visual Studio 2005 as an additional download) which allows you to do some pretty cool stuff in the way of code generation — that being generating classes, sql scripts, MVC and/or Dynamic Data templates, or anything you like really. It can plug in and read database information quickly and has gained a lot more traction over the last year or so with the adoption by ASP.NET MVC and Dynamic Data really driving it’s name, however unfortunately with the lack of great IDE support, which I’m hoping might change a little come Visual Studio 2010 there is no in-built syntax highlighting or easy way to get started with using it (eg. no “Add new item”). However, it’s a great system and can provide loads of benefit out of the box. read more...

add a comment |category: |Views: 26

tags: another

Custom Templating Library(timcools.net)

submitted by TimCoolsTimCools(40) 2 years, 8 months ago

This article presents the Custom Templates Library. This library provides easy access to the text transformation features of T4 from within custom applications. read more...

add a comment |category: |Views: 6

tags: another

Template based code generation with T4 from custom applications.(timcools.net)

submitted by TimCoolsTimCools(40) 2 years, 8 months ago

Generate source code from custom applications by using the Text Template Transformation Toolkit of VS 2008. read more...

add a comment |category: |Views: 14

tags: another

How to modify the T4 templates used by Sharp Architecture(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 9 months ago

Taking a look at how you can modify the T4 templates which are used to change the default generation behavior of Sharp Architecture read more...

add a comment |category: |Views: 190

tags: another

T4 Templates: A Quick-Start Guide for ASP.NET MVC Developers(blogs.msdn.com)

submitted by JemmJemm(9604) 2 years, 11 months ago

"As mentioned in our recent blog post on the ASP.NET MVC Release Candidate, our code-generation features (namely, Add Controller and Add View) now use the T4 (Text Template Transformation Toolkit) templating technology behind the scenes. Because users can customize the templates to a great extent, we wanted to make a post to bring everyone up to speed on T4." read more...

1 comment |category: |Views: 379

tags: another

Using T4 Command-Line Parameters - Generating NHibernate Magic Strings(broloco.blogspot.com)

submitted by FlukeFanFlukeFan(280) 3 years, 2 months ago

Describes how to use T4 (TextTransform) command line parameters (in this case to generate the 'magic strings' used by NHibernate ICriteria queries). read more...

add a comment |category: |Views: 88

tags: another

T4 (Text Template Transformation Toolkit) Code Generation - Best Kept (hanselman.com)

submitted by pete.mpete.m(85) 3 years, 3 months ago

Very handy stuff indeed read more...

add a comment |category: |Views: 440

tags: another

Creating complex code generators(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 4 months ago

This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 43

tags: another

Creating reusable code generation templates(olegsych.com)

submitted by olegsycholegsych(335) 3 years, 4 months ago

This article is a part of a series that introduces code generation using C# and Text Templates (also known as T4 Templates) in Visual Studio; explains how to create reusable templates and combine them in complex code generators. read more...

add a comment |category: |Views: 50

tags: another