Jump to content
xisto Community
Sign in to follow this  
Jeigh1405241495

Linq Overview

Recommended Posts

Well, there are a few references to LINQ in other forums, but I had not until recently learned of this new addition to .Net (Version 3.5 and up) that I feel it's good to let people know about because I found it pretty interesting. As a precursor to this post know that I don't have a huge amount of experience with LINQ but simply hope to provide a brief overview and maybe get some people interested in the new technology.

 

First, a couple useful links:

https://en.wikipedia.org/wiki/Language_Integrated_Query

https://msdn.microsoft.com/en-us/library/bb397926.aspx

 

First off, Linq stands for Language Integrated Query. It is a way built into .Net to allow you to programatically set up and interact with databases that you have created. Note: This is not a database system, it simply is an interface to allow applications to interact with the database. You still need a proper database system to be set up to connect to.

 

LINQ allows a programmer to set up a mapping of all the tables within a database (a simple drag/drop from the server explorer allows all current tables, attributes, relationships, etc to be translated over) which allows the program to then see the database in an object oriented fashion. On can then set up the ability to interact with database as if they were simple objects with attributes.

 

Low level queries are very simple to write with LINQ as well, as you can call to retrieve rows/columns easily and store then in datasets that can be further manipulated without continued database interaction.

 

Basically, what linq does is allow you to avoid writing a million "Select ID from Table where Name = Bob" style queries and allows you to really simplify the interactions between the business logic and the data layer. Further it makes it rediculously easy to store the results in very convenient ways to be used in datasets, views, and what have you.

 

I am by no means a LINQ guru, as mentioned I have relatively limited experience with it having used it only briefly on a project at work. If anyone has more to add or minor corrections to what I have said, please do so :rolleyes:

Share this post


Link to post
Share on other sites

Sounds interesting to me. I may have to link into this and see what it is all about. I have to wonder if it is as functional as ADO.Knowing Microsoft I am going to bet that it only works with MS SQL Server. For me that would really limit it's usefulness. Additionally I have to wonder how complex of a query can be executed by this means.

Share this post


Link to post
Share on other sites

Complex queries can be done, slightly different syntaxing but I've seen pretty long and complicated queries run. They have all the normal SQL elements present.That said I should point out I just heard over lunch that microsoft is cutting support for Linq in favor of a new technology haha. Guess I picked a great time to learn about it :rolleyes:

Share this post


Link to post
Share on other sites

I'm not into .NET anymore, because I don't really do anything with it anymore, but LINQ seems interesting, in wikipedia it's written that it only supports Microsoft SQL server, but I also found that you can use it on MySQL as well with some wrappers or something like that.

Share this post


Link to post
Share on other sites

That said I should point out I just heard over lunch that microsoft is cutting support for Linq in favor of a new technology haha. Guess I picked a great time to learn about it :rolleyes:

That does not surprise me too much they tend to change what evr they declare to be the latest and greatest on a fairly regular basis.

One of the reasons I think so many companies keep running MS Access as a front end for important data is that it is well seasoned. With the exception of the change to ADO from DAO (DAO is still supported last I checked) it has remained largely unchanged. Sure features have changed and the UI recently and the like but the underlaying product remains stable. That and you write T-SQL or PLSQL queries directly in it.

I do not think that any technology that is useful solely for MS SQL Server is going to really take off. Try as they might MS has to know that Oracle still rules the high end database market.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.