Jul 24th, 2009 | 1 Comment

Text Template Transformation Toolkit (T4) is a template-based code generation engine. This is one of the best things I found out today, so just thought of sharing with you guys.

This is awesome code generator template. This template is best used to generate your business logic code that will communicate with the database.

You can create a code page that will have all your database tables as Classes and their fields as its variables. So you will have your database tables as class and its columns as variables. You will have everything object oriented.

This template has an extension “.tt” and you can write code in any language C# or Vb and have the code file generated in any of these language you want. All you have to do is write the code in “.tt” file and its corresponding “.cs” or “.vb” file will be generated once you save your “.tt” file.

Its truly AMAZING!!!

Check this out.

[googlevideo=http://video.google.com/videoplay?docid=-3383108526856631845&hl=en]

Jul 24th, 2009 | No Comments

Today I went through one of the video that showed how to work with LINQ and while going through I saw something which I had seen many a times before but everytime I forget about that, but this time I remembered.

What I saw was the person who showed a small demo on the LINQ started to write something, in the class he wrote some 2-3 words and the code for the class appeared automatically. I used to wonder on how they do that so I thought let me check on that, you just write couple of words and you have your class ready with you. After doing some research on that here is what I have.

This is a small Add-on for Visual Studio called as AutoCode which helps you to create a shortcut for a piece of code which you use regularly. What it does is helps you to create a template for the most used code and set a shortcut for that, the next time you want to use that piece of code you need not write that code again all you have to do is type the shortcut you have set for the code that that code will be there. Amazing!!!!!!

You can download the Add-on from here. Also check out the quickstart that will help you to learn how you can start using the AutoCode Add-on.

So start using the AutoCode and save your time by saving the repetative code to be used by just a shortcut.

Written by Ajay Matharu

July 24th, 2009 at 9:34 am