DotNetShoutout - Stories tagged with T4
2
Shouts

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

published 661 days, 22 hours, 30 minutes ago posted by http://ruijarimba.wordpress.com/http://ruijarimba.wordpress.com/ 663 days, 8 hours, 41 minutes ago
Wednesday, July 27, 2011 9:50:10 PM GMT Tuesday, July 26, 2011 11:39:25 AM GMT
Use ASP.NET MVC T4 custom templates to generate resource files and localized views. (more)
category: Web Dev | clicked: 33 | 3 comments | | source: ruijarimba.wordpress.com
tags: ASP.NET MVC, T4, Localization, Globalization
3
Shouts

To repeat or not to repeat yourself?

published 687 days, 23 hours, 15 minutes ago posted by slo2olsslo2ols 691 days, 15 hours, 17 minutes ago
Friday, July 01, 2011 9:04:59 PM GMT Tuesday, June 28, 2011 5:03:25 AM GMT
What do modern developers if they are forced to write repeated code? Of course, they follow DRY principle and try to write generic code that covers as much as possible cases and can easily be extended to the rest. But sometimes such a change is complex, inefficient, or simply impossible. Here template engines come into play that allow the developer to set the rules and get your service code. I propose to try to take the advantages of both these approaches. (more)
category: How To | clicked: 4 | comment | | source: osmirnov.net
tags: Repository, T4, Builder, Patterns, singleton, dry, snippets, Fluent Interface
4
Shouts

Generating code with Preprocessed T4 Text Templates

published 713 days, 1 hour, 2 minutes ago posted by lenielleniel 714 days, 4 hours, 11 minutes ago
Monday, June 06, 2011 7:18:03 PM GMT Sunday, June 05, 2011 4:09:28 PM GMT
Last Friday I was writing some code to populate a database with country/state information. I wrote the code to include Brazil and its 27 states but when I realized that I’d have to do the same thing again with USA and its states I thought that it’d be boring. Luckily we have T4. Read on... (more)
category: How To | clicked: 50 | comment | | source: www.leniel.net
tags: T4, Code Generation, Visual Studio
6
Shouts

Entity Framework and T4: Generate Query Objects on the fly, part 1 | Rui Jarimba

published 738 days, 11 hours, 15 minutes ago posted by http://ruijarimba.wordpress.com/http://ruijarimba.wordpress.com/ 741 days, 20 hours, 56 minutes ago
Thursday, May 12, 2011 9:05:18 AM GMT Sunday, May 08, 2011 11:23:45 PM GMT
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. (more)
category: Architecture | clicked: 7 | comment | | source: ruijarimba.wordpress.com
tags: .NET, T4, Entity Framework, C#, Query Object, Linq, Design Patterns
3
Shouts

Entity Framework and T4: Generate Query Objects on the fly, part 1 | Rui Jarimba

posted by http://ruijarimba.wordpress.com/http://ruijarimba.wordpress.com/ 741 days, 21 hours, 12 minutes ago
Sunday, May 08, 2011 11:08:13 PM GMT
Post navigation← PreviousEntity Framework and T4: Generate Query Objects on the fly, part 1Posted on May 9, 2011 by Rui Jarimba 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. Table of contentsWhat is a Query Object?The Model – MVC Music StoreUsing T4 to generate Query ObjectsString propertiesDatetimes and numeric valuesAssociationsIQueryable (more)
category: Architecture | clicked: 1 | comment | | source: ruijarimba.wordpress.com
tags: .NET, Serialization, T4, Entity Framework, C#, Query Object, Linq, Design Patterns
4
Shouts

T4 vs Razor – what’s the skinny? - Gareth Jones

published 798 days, 17 hours, 14 minutes ago posted by iftekharahmedamitiftekharahmedamit 800 days, 5 hours, 18 minutes ago
Sunday, March 13, 2011 3:05:45 AM GMT Friday, March 11, 2011 3:01:51 PM GMT
You might have noticed in the recent storm of Web Tools releases that there’s a groovy new kid on the template engine block – Razor. A few customers have been asking folks on both teams some questions around this, such as the following. * Why do you have two engines? * When should I use each of these two engines? * When can I expect <feature X> from one engine to appear in the other one? So the T4 and Razor teams got ourselves together in a room and came up with a common way to express how we t... (more)
category: Web Dev | clicked: 3 | 1 comment | | source: blogs.msdn.com
tags: T4, Razor
4
Shouts

Unit Testing Entity Framework 4.0: A-Z in 3 Easy Steps | Rab Hallett's blog

published 991 days, 5 hours, 49 minutes ago posted by iepureiepure 992 days, 2 hours, 18 minutes ago
Wednesday, September 01, 2010 2:30:56 PM GMT Tuesday, August 31, 2010 6:01:51 PM GMT
This article gives you an ultra-fast run down on how to start Unit Testing in Entity Framework 4.0 using C#; applying a suitable Code Generation Item to your Entity Data Model (EDMX) file, and building a Unit Test Project in Visual Studio 2010. No external test harness is required, it doesn't rely on having a Repository pattern being implemented and you don't need to buy any new products. Just Visual Studio 2010 Professional Edition, Premium Edition or Ultimate Edition out of the box. (more)
category: Architecture | clicked: 2 | comment | | source: blogofrab.blogspot.com
tags: T4, Entity Framework, C#, Visual Studio 2010, Mocking, unit testing
3
Shouts

ADO.NET Mocking Context Generator

posted by iepureiepure 1003 days, 21 hours, 32 minutes ago
Thursday, August 19, 2010 10:48:29 PM GMT
Not really a story, but nonetheless an EDMX code generator that should make your life easier. (more)
category: Agile | clicked: 5 | comment | | source: visualstudiogallery.msdn.microsoft.com
tags: ADO.NET, T4, C#, entity framework 4.0
4
Shouts

T4 tip (debug) - [Export] Bnaya Eshet

posted by bnayabnaya 1008 days, 5 hours, 42 minutes ago
Sunday, August 15, 2010 2:37:59 PM GMT
T4 tip (debug)T4 tip (debug) while I was writing the post on T4 debugging (here), I had show how to use System.Diagnostics.Debugger.Break() in order of getting the debugger stop.   actually there is 2 problem with this pattern:the break point remain active while no debugger is attached.it cause VS to crash when ever saving the t4, when the debugger doesn't attached.Solution we can overcome those issues by changing the pattern to match the following:Code Snippetif (System.Diagnostics.Debugger.IsAtta... (more)
category: Architecture | clicked: 3 | comment | | source: blogs.microsoft.co.il
tags: T4, Code Generation
5
Shouts

T 4 beginners – part 5 - [Export] Bnaya Eshet

published 1078 days, 5 hours, 59 minutes ago posted by bnayabnaya 1078 days, 23 hours, 40 minutes ago
Sunday, June 06, 2010 2:21:02 PM GMT Saturday, June 05, 2010 8:40:11 PM GMT
T 4 beginners – part 5T 4 beginners – part 5 this is the 5rd post on this series. in this post we will focus on how to debugT4. there is no special code for this post. the series TOC is available here. What cause T4 failure? actually the T4 can fail in to different stage:It can fail when VS compile the Control blocks or Directives(this is compile time failure)It can fail because the Control blocks is throwing an exception (while the compiled T4 is executing).  Executing T4 it is important to ... (more)
category: Architecture | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: Custom tool, T4, Entity Framework, VS 2010
3
Shouts

Efficient workflow with Linq to Sql using Migrator, T4 and some Xslt

published 1088 days, 7 hours, 49 minutes ago posted by https://www.google.com/profiles/carl.hoerberghttps://www.google.com/profiles/carl.hoerberg 1089 days, 5 hours, 35 minutes ago
Thursday, May 27, 2010 12:30:52 PM GMT Wednesday, May 26, 2010 2:44:52 PM GMT
Linq to SQL is still my favorite datalayer, why? Excellent Linq capabilities and the fact that I only have to change my database once, and my code/entities will be immediately reflected. How?  First, download MigratorDotNet, it's a utility for database migrations, which versions your database changes in code: http://code.google.com/p/migratordotnet/wiki/GettingStarted. Create a new library in your solution and start writing migratio... (more)
category: Web Dev | clicked: 0 | comment | | source: devcarl.posterous.com
tags: workflow, Linq To SQL, T4, Migrator
3
Shouts

T 4 beginners – part 4 - [Export] Bnaya Eshet

posted by bnayabnaya 1093 days, 15 hours, 14 minutes ago
Saturday, May 22, 2010 5:06:40 AM GMT
T 4 beginners – part 4T 4 beginners – part 4 this is the 4rd post on this series. in this post we will focus on T4Class feature control blocks. you can download the code for this post here. the series TOC is available here.  What is class feature control block? class feature control block is one of the T4 extension mechanism that enable reuse of T4 sections. using class feature control block you can defines helper properties or methods, that can be used from different T4 templates.  The sy... (more)
category: Architecture | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: Custom tool, T4, Entity Framework, VS 2010
4
Shouts

T 4 beginners – part 3 - [Export] Bnaya Eshet

posted by bnayabnaya 1094 days, 1 hour, 34 minutes ago
Friday, May 21, 2010 6:46:21 PM GMT
T 4 beginners – part 3T 4 beginners – part 3 this is the 3rd post on this series. in this post we will focus on basics T4Control blocks. you can download the code sample from here. the series TOC is available here.   T4Control blocks is where dynamic text is added into the template output, this is the heart of T4 concept (C# is the default language but you can change it to VB).  Standard control blocks A standard control block is a section of program code that generates part of the output. ... (more)
category: Architecture | clicked: 1 | comment | | source: blogs.microsoft.co.il
tags: Custom tool, T4, Entity Framework, VS 2010
5
Shouts

T 4 beginners – part 2 - [Export] Bnaya Eshet

published 1095 days, 8 hours, 45 minutes ago posted by bnayabnaya 1096 days, 1 hour, 6 minutes ago
Thursday, May 20, 2010 11:35:34 AM GMT Wednesday, May 19, 2010 7:14:13 PM GMT
T 4 beginners – part 2T 4 beginners – part 2 this is the second post on this series. in this post we will focus on basics T4 Directives. you can use the code sample of the previous post here. the series TOC is available here.  Directive syntax: any of the directives is using the following syntax: (more)
category: Architecture | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: Custom tool, T4, Entity Framework, VS 2010
4
Shouts

T 4 beginners – part 1 - [Export] Bnaya Eshet

published 1096 days, 6 hours, 57 minutes ago posted by bnayabnaya 1097 days, 1 hour, 29 minutes ago
Wednesday, May 19, 2010 1:22:43 PM GMT Tuesday, May 18, 2010 6:51:42 PM GMT
T 4 beginners – part 1T 4 beginners – part 1 this is the first post of a series that will focus on T4 template. this post discuss the T4 in general while the following pose will focus on the T4 practice. the code for this post can be found here.  What is T4 template? T4 is sanding for Text Template Transformation Toolkit. T4 is all about automating code or content generation. the usual extension for T4 files is the *.tt  When to use T4? whenever you identify repeatable pattern of code or conte... (more)
category: Architecture | clicked: 0 | comment | | source: blogs.microsoft.co.il
tags: Custom tool, T4, Entity Framework, VS 2010
9
Shouts

T4MVC Extension for MVC Partials – Evan Nagle

published 1101 days, 18 hours, 46 minutes ago posted by StevesSteves 1102 days, 4 hours, 33 minutes ago
Friday, May 14, 2010 1:34:20 AM GMT Thursday, May 13, 2010 3:46:57 PM GMT
T4MVC is a helpful template for your MVC projects. You can follow the directions on David’s blog to get started; that should give you a quick understanding of what T4MVC is capable of. If you’ve yet to experience the joy of writing T4 templates, you should also check out Scott Hanselman’s Blog and Oleg Sych’s blog. You know what they say: if you haven’t been to Oleg’s T4 blog, you haven’t really “experienced... (more)
category: Web Dev | clicked: 1 | comment | | source: www.weirdlover.com
tags: ASP.NET MVC, T4, C#, ASPNETMVC, T4MVC, MVC, ASP.NET
6
Shouts

Entity Framework T4 Enhancements Part 1, Generate an IDatabase

published 1119 days, 12 hours, 39 minutes ago posted by matthidingermatthidinger 1121 days, 22 hours, 34 minutes ago
Monday, April 26, 2010 7:40:49 AM GMT Friday, April 23, 2010 9:46:19 PM GMT
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. Generate an IDatabase interface to represent your Data Context (more)
category: Web Dev | clicked: 1 | comment | | source: matthidinger.com
tags: EF, T4, EF4, entityframework
7
Shouts

Working with T4 templates and LightSpeed

published 1130 days, 8 hours, 46 minutes ago posted by traskjdtraskjd 1131 days, 22 hours, 18 minutes ago
Thursday, April 15, 2010 11:34:26 AM GMT Tuesday, April 13, 2010 10:02:04 PM GMT
Ivan explains how developers can use the T4 templating engine that is part of Visual Studio to create their own code generated classes for LightSpeed entities. LightSpeed uses Velocity templates by default but with T4 getting more interest recently this is a welcome addition to the framework. (more)
category: Architecture | clicked: 3 | comment | | source: www.mindscape.co.nz
tags: T4, T4 Templates, LightSpeed, Mindscape
6
Shouts

Kill magic strings with T4MVC

published 1148 days, 4 hours, 45 minutes ago posted by sonukapoorsonukapoor 1150 days, 7 hours, 54 minutes ago
Sunday, March 28, 2010 3:35:23 PM GMT Friday, March 26, 2010 12:26:19 PM GMT
Andrew Siemer explains how to get rid of magic strings with ASP.NET MVC and T4MVC. (more)
category: Web Dev | clicked: 0 | comment | | source: dotnetslackers.com
tags: T4, ASP .NET, MVC
6
Shouts

T4MVC Add-In to auto run template

published 1159 days, 8 hours, 26 minutes ago posted by https://www.google.com/accounts/o8/id?id=AItOawkYKeMwDCa949_B8pvpA9PhnSDFtKdjhL0https://www.google.com/accounts/o8/id?id=AItOawkYKeMwDCa949_B8pvpA9PhnSDFtKdjhL0 1159 days, 20 hours, 5 minutes ago
Wednesday, March 17, 2010 11:54:17 AM GMT Wednesday, March 17, 2010 12:14:57 AM GMT
T4MVC is a fantastic solution to avoid 'Magic Strings' in ASP.NET MVC.   Thanks to David Ebbo for this contribution which has made its way to MVCContrib.   Must keep T4 template open and save it once.This has been the only negative thing about the template.  I thought about writing an Add-In for VS to do this and even taked to David about doing it.  Well, his latest post has inspired me to write one.  I took my dot net less plug in and ripped nearly everything out of it, threw in about 5 lines of new ... (more)
category: Web Dev | clicked: 4 | comment | | source: blog.waynebrantley.com
tags: T4, T4MVC, MVC 2, MVC, ASP.NET
Previous 1 2 Next