Insight into LINQ and its different components in .NET C# 3.5

Your Ad Here

LINQ Components


Because LINQ is so powerful, you should expect to see a lot of systems and products become LINQ
compatible. Virtually any data store would make a good candidate for supporting LINQ queries. This
includes databases, Microsoft’s Active Directory, the registry, the file system, an Excel file, and so on.
Following are the components for usage.


LINQ to Objects
LINQ to Objects is the name given to the IEnumerable<T> API for the Standard Query Operators. It is
LINQ to Objects that allows you to perform queries against arrays and in-memory data collections.
Standard Query Operators are the static methods of the static System.Linq.Enumerable class that you
use to create LINQ to Objects queries.


LINQ to XML
LINQ to XML is the name given to the LINQ API dedicated to working with XML. This interface was
previously known as XLinq in older prereleases of LINQ. Not only has Microsoft added the necessary
XML libraries to work with LINQ, it has addressed other deficiencies in the standard XML DOM, thereby
making it easier than ever to work with XML. Gone are the days of having to create an XmlDocument
just to work with a small piece of XML. To take advantage of LINQ to XML, you must have a reference to
the System.Xml.Linq.dll assembly in your project and have a using directive such as the following:
using System.Xml.Linq;


LINQ to DataSet
LINQ to DataSet is the name given to the LINQ API for DataSets. Many developers have a lot of existing
code relying on DataSets. Those who do will not be left behind, nor will they need to rewrite their
code to take advantage of the power of LINQ.


LINQ to SQL
LINQ to SQL is the name given to the IQueryable<T> API that allows LINQ queries to work with
Microsoft’s SQL Server database. This interface was previously known as DLinq in older prereleases
of LINQ. To take advantage of LINQ to SQL, you must have a reference to the System.Data.Linq.dll
assembly in your project and have a using directive such as the following:
using System.Data.Linq;


LINQ to Entities
LINQ to Entities is an alternative LINQ API that is used to interface with a database. It decouples the
entity object model from the physical database by injecting a logical mapping between the two. With

this decoupling comes increased power and flexibility, as well as complexity. Because LINQ to Entities
appears to be outside the core LINQ framework, it is not covered in this book. However, if you find
that you need more flexibility than LINQ to SQL permits, it would be worth considering as an alternative.
Specifically, if you need looser coupling between your entity object model and database,
entity objects comprised of data coming from multiple tables, or more flexibility in modeling your
entity objects, LINQ to Entities may be your answer.

 

Happy Reading for more in-depth knowledge of LINQ  in future blogs.

Subscribe
Posted in Labels: kick it on DotNetKicks.com |

28 comments:

  1. Anonymous Says:

    watermelon viagra viagra faq 2007 viagra hmo where to buy viagra viagra cheap viagra pill viagra online uk buy viagra in london england natural herbs used as viagra how does viagra work mexico viagra is viagra safe for women free sample prescription for viagra cheap viagra canada

  2. Anonymous Says:

    kazar torebki
    to torebki mlodziezowe , torebki skorzane , torebka kuferek . torby damskie , torebki zamszowe ?

  3. Anonymous Says:

    can you buy xanax online buy greenstone xanax - xanax withdrawal 1mg per day

  4. Anonymous Says:

    xanax pills xanax prescription online no prescription - xanax side effects headache

  5. Anonymous Says:

    carisoprodol soma soma muscle relaxer narcotic - soma muscle relaxer drug test

  6. Anonymous Says:

    cheapest soma soma drug description - soma cube online game

  7. Anonymous Says:

    buy soma soma logic - online soma no prescription

  8. Anonymous Says:

    buy tramadol online tramadol overdose treat - tramadol hydrochloride 100mg used

  9. Anonymous Says:

    buy tramadol online cod overnight buy tramadol using mastercard - tramadol to buy online

  10. Anonymous Says:

    buy cialis online cialis 5mg review - generic cialis will available

  11. Anonymous Says:

    tramadol online overnight tramadol 50mg and xanax - can you withdrawal tramadol

  12. Anonymous Says:

    tmd generic zithromax cost - buy cheap azithromycin http://www.zithromaxonlinerx.net/#cheap-zithromax, [url=http://www.zithromaxonlinerx.net/#cheap-zithromax]azithromycin sale [/url]

  13. Anonymous Says:

    xrh purchase strattera online - buy generic strattera http://www.stratteraforsale.net/#buy-generic-strattera , [url=http://www.stratteraforsale.net/#generic-strattera-online ]generic strattera online [/url]

  14. Anonymous Says:

    generic xanax side effects long term xanax use - xanax bars 2 mg street price

  15. Anonymous Says:


    4 Cymbalta Without Prescription - buy cheap cymbalta http://www.cymbaltaduloxetineorder.net/#order-cymbalta, Order Cymbalta

  16. Anonymous Says:

    cheap cialis 20mg buy cialis delhi - generic cialis 4rx

  17. Anonymous Says:

    cialis drug cialis online from us pharmacy - once daily cialis side effects

  18. Anonymous Says:

    cialis 10mg illegal to buy cialis online - cialis daily once a day

  19. Anonymous Says:

    cialis pills how to buy cialis online safely - can you buy cialis online no prescription

  20. Anonymous Says:

    http://landvoicelearning.com/#97734 buy tramadol online fedex delivery - how to buy tramadol online

  21. Anonymous Says:

    http://landvoicelearning.com/#63987 tramadol overdose in dogs treatment - where to buy tramadol forum

  22. Anonymous Says:

    klonopin online klonopin amount to overdose - klonopin kick in

  23. Anonymous Says:

    clonazepam no prescription klonopin withdrawal hallucinations - klonopin side effects muscle weakness

  24. Anonymous Says:

    http://landvoicelearning.com/#57594 tramadol online with no prescription - tramadol for dogs no prescription

  25. Anonymous Says:

    http://buytramadolonlinecool.com/#63102 how to buy tramadol legally - tramadol hcl 50 mg dogs

  26. Anonymous Says:

    carisoprodol 350 mg buy carisoprodol usa - carisoprodol online no prescription cod

  27. Anonymous Says:

    Most people simply repay it and take out another to make do for the next 7 days. In the state regarding California, almost all online creditors must get yourself a California permit in order to approach loans? In the event no, it is sure that you're going to be seeking for the simplest way to acquire for instant money proper. Same day loans It's the responsibility regarding finance sportsman or similar stuffs to have verified as well as signature!

  28. Anonymous Says:

    It also provides a financial design in areas that are under-developed along with under-banked. Military consumers are competitive, yet no armed forces unit desires another for you to fail. Overtime, along with responsible repayment, you can also obtain online, medical unanticipated emergencies, savings with immediate deposit. instant payday loan For longer name credit, make sure you look at a credit-based card or person loan.