Geeks With Blogs

News Ashraful Alam Joy

Create Your Badge

Ashraful Alam is a Software Architect, who has 8 years of professional experience in Software Development industry. This Bangladeshi national is involved with project management and development of several US based software projects from his country. Already he has managed and developed several software projects, which are being used by several users of different countries, such as USA, Canada, Australia, and Bangladesh. While developing and managing a team, he contains and maintains a set of well defined engineering practices developed by him and other online developer communities.

Due to his willingness to give effort to improve and share better software development practices, Ashraf has been awarded as “Most Valuable Professional” (MVP) in ASP.NET category by Microsoft since year 2007 multiple times, which is a rare honor and prestigious reorganization among the developers around the world.

Check his portfolio to know more about him and his works.


.NETTER Characters... Every part of your life is best, if you can know yourself and thus create your life like an artist!

As a developer always we want to have the opportunity to write the codes properly, along with programming language specific words and keyword to be highlighted in to different colors. Also VS.NET developers enjoys an IDE features named “Intellisense”, where while wring codes, a list of probable class or object name appears in a list and can be inserted to the code segment, just by selecting the appropriate item from the list. This becomes EXTREMELY useful, when we have to use long class names (for code readability, which is very much necessary).

 

While we invoke SQL statements from the “coding” layer, for instance using any .net ( ex. C# 3.0, VB.NET etc) language, we invoke a SQL statement, by using ADO.NET object model of .net framework, we really face a great problem now a days, since we have to write the SQL statements is string, where we can’t get the keyword colors or can use the intellisense features.

 

While invoking SQL statements into codes, personally I desired a language feature several times, where I can use the queries as language specific style. Yes, in the next version of C# programming language, there will be a new feature, named LINQ (Language Integrated Query), where we can invoke, debug and use the returned result of a database related query much more efficiently or effectively.  

 

The code snippet below illustrates a very simple  example of LINQ used in a C# programming language environment…

 

[Title("Where - Simple 1")]

[Description("This sample illustrate a sample method that uses LINQ")]

        public void Linq1() {

            int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

 

            var lowNums =

                from n in numbers

                where n < 5

                select n;

       

            Console.WriteLine("Numbers < 5:");

            foreach (var x in lowNums) {

                Console.WriteLine(x);

            }

        }

Posted on Thursday, July 20, 2006 12:13 PM Implementation , Database , .NET , Software Development | Back to top


Comments on this post: LINQ – We can use intellisense on queries !!!

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Ashraf Alam | Powered by: GeeksWithBlogs.net