Beyond Web Logs

Discuss technology, web development, networks and more ...

Recent posts

Tags

First time here? At BeyondWebLogs we discuss technology, web development, personal development, networks and more. You can subscribe to the RSS feed so that you keep up to date with the latest content. Now, on with the regular content...

Learn LINQ through LINQ code examples

Recently got LINQPad which is an awesome tool for LINQ new bees. It comes preloaded with 200 examples of how to use various forms on LINQ, LINQ to SQL and LINQ to XML.

LINQPad is more than just a LINQ query tool. It actually is a code snippet IDE. Instantly execute any C# 3 or VB 9 expression or statement block!

Best of all, LINQPad is free and needs no installation. Just download and run.  The executable is only 2MB and is self-updating.

Click here to download LINQPad and start your LINQ exploration.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: LINQ
Posted by Waqas on Tuesday, June 24, 2008 6:38 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Introduction to LINQ - What is it?

Suppose you are writing an application using .NET. Chances are high that at some point you’ll need to persist objects to a database, query the database, and load the results back into objects. The problem is that in most cases, at least with relational databases, there is a gap between your programming language and the database. Good attempts have been made to provide object-oriented databases, which would be closer to object-oriented platforms and imperative programming languages such as C# and VB.NET. However, after all these years, relational databases are still pervasive, and you still have to struggle with data access and persistence inall of your programs.

The original motivation behind LINQ (pronounced as "LINK" not "Link Cue") was to address the conceptual and technical difficulties encountered when using databases with .NET programming languages. With LINQ, Microsoft’s intention was to provide a solution for the problem of object-relational mapping, as well as to simplify the interaction between objects and data sources. LINQ eventually evolved into a general-purpose language-integrated querying toolset. This toolset can be used to access data coming from in-memory objects (LINQ to Objects), databases (LINQ to SQL), XML documents (LINQ to XML), a file-system, or any other source.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: LINQ
Posted by Waqas on Tuesday, May 13, 2008 3:32 PM
Permalink | Comments (0) | Post RSSRSS comment feed

What is LINQ to SQL and Pronunciation of LINQ

LINQ as you already know stands for "Lanugage Integrated Query" - but many people don't know that its pronunciation is "LINK" not "Link Cue"

Just in case, if you are living under the rock, LINQ to SQL is an O/RM (object relational mapping) implementation that ships in the .NET Framework 3.5 release, and which allows you to model a relational database using .NET classes.  You can then query the database using LINQ, as well as update/insert/delete data from it.

LINQ to SQL fully supports transactions, views, and stored procedures.  It also provides an easy way to integrate data validation and business logic rules into your data model.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: LINQ
Posted by Waqas on Monday, April 28, 2008 8:18 PM
Permalink | Comments (0) | Post RSSRSS comment feed