Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with LINQ

  • Linqer – a nice tool for SQL to LINQ transition

    Almost all .NET developers who have been working in several applications up to date are probably familiar with writing SQL queries for specific needs within the application. Before LINQ as a technology came on scene, my daily programming life was about 60-70% of the day writing code either in the front-end (ASPX, JavaScript, jQuery, HTML/CSS etc…) or in the back-end (C#, VB.NET etc…), and about 30-40% writing SQL queries for specific needs used within the application. Now, when LINQ is there, I feel that the percentage for writing SQL queries got down to about 10% per day. I don’t say it won’t change with time depending what technology I use within the projects or what way would be better, but since I’m writing a lot LINQ code in the latest projects, I thought to see if there is a tool that can automatically translate SQL to LINQ so that I can transfer many queries as a LINQ statements within the code.

  • Calculate Business Days using LINQ

    In this blog post, I will show one simple way to get the total business days within given range of two dates. Question related to this topic was asked several times in many ASP.NET / .NET Communities, so I thought it would be very good to document it with a blog post.

  • Get Distinct values of an Array using LINQ

    In this blog post, I will show how you can filter your array and remove all duplicate elements so that the end result will be array with distinct values. Moreover, the main idea is to do this without using any other (two or more) array(s) to make this work.