Convert SQL to LINQ Tool

If you are like me and have worked for years building somewhat complex queries using t-SQL but are also trying to learn and use LINQ2SQL then you know that it can be frustrating. Frustrating because the syntax is different and learning curve is a little more than it should be. I also know that LINQ2SQL provides a lot of benefits that I should take advantage of.

I know of a great tool that converts linq to sql (LINQPad4) but I often wonder if there is a product that goes from sql to Linq. I found one such tool and must say it works very well. As with any conversion tool it does not always work flawlessly but the time it does save is worth the small cost.

This tool is called-Linqer

You can download the version and try it free for 30 days and you will quickly realize that it is worth the $60.00

Once you have installed it and created a new connection to your sql database. Then write your select statement in the left window and then click on the convert sql to Linq. The application will take your SQL statement and convert it to LINQ and also generate a class (they call it a template) that contains your result. This class includes all your properties and the generating of a function for you to add the records to. Below is a quick example of the tool.


From here you can copy the code into your project and start programming something more exciting.

You should change objects to actual data types in the class

Added Bonus: This tool will convert to C# or as well.

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , | Posted under Programming/Coding | RSS 2.0

Author Spotlight

David Bauernschmidt

I live in the historical triangle of Virginia where I am married with two daughters. I have spent over 13 years working for a Fortune 500 company in the computer area. I started in VB 6.0 and by the time I ended my employment I was supervising a development team where we built many web applications. When my first daughter was born I wanted to spend more time with her so I left and became a programmer analyst for local government as well as launch my own company. Since then I have grown James River Webs into a profitable web design and application company helping small businesses create a big presence on the internet. As an employee I have created web application used by citizens and other companies. I enjoy fly fishing, and spending time with my family. I also enjoy learning new approaches and development tools when it comes to developing applications.

Leave a Reply

Your email address will not be published. Required fields are marked *