• Blog
  • Info Support
  • Career
  • Training
  • International Group
  • Info Support
  • Blog
  • Career
  • Training
  • International Group
  • Search
logo InfoSupport
  • Latest blogs
  • Popular blogs
  • Experts
      • All
      • Bloggers
      • Speakers
  • Meet us
  • About us
    • nl
    • en
    • .NET
    • 3D printing
    • Advanced Analytics
    • Agile
    • Akka
    • Alexa
    • Algorithms
    • Api's
    • Architectuur
    • Artificial Intelligence
    • ATDD
    • Augmented Reality
    • AWS
    • Azure
    • Big Data
    • Blockchain
    • Business Intelligence
    • Chatbots
    • Cloud
    • Code Combat
    • Cognitive Services
    • Communicatie
    • Containers
    • Continuous Delivery
    • CQRS
    • Cyber Security
    • Dapr
    • Data
    • Data & Analystics
    • Data Science
    • Data Warehousing
    • Databricks
    • DataOps
    • Developers life
    • DevOps
    • Digital Days
    • Digital Twin
    • Docker
    • eHealth
    • Enterprise Architecture
    • Event Sourcing
    • Hacking
    • Infrastructure & Hosting
    • Innovatie
    • Integration
    • Internet of Things
    • Java
    • Machine Learning
    • Microservices
    • Microsoft
    • Microsoft Bot Framework
    • Microsoft Data Platform
    • Mobile Development
    • Mutation Testing
    • Open source
    • Pepper
    • Power BI
    • Privacy & Ethiek
    • Python
    • Quality Assistance & Test
    • Quality Assurance & Test
    • Requirements Management
    • Scala
    • Scratch
    • Security
    • SharePoint
    • Software Architecture
    • Software development
    • Software Factory
    • SQL Server
    • SSL
    • Start-up
    • Startup thinking
    • Stryker
    • Test Quality
    • Testing
    • TLS
    • TypeScript
    • Various
    • Web Development
    • Web-scale IT
    • Xamarin
    • All
    • Bloggers
    • Speakers
Home » LINQ, Data access of the future really rocks
  • LINQ, Data access of the future really rocks

    • By Marcel de Vries
    • .NET 18 years ago
    • .NET 0 comments
    • .NET .NET
    LINQ, Data access of the future really rocks

    The past two days where really packed with lots of new stuff. I must say I was a little bit disappointed at first with the keynote of Bill and Jim. I found that many of the demo’s they came up with where more or less a repeat of the stuff they did in 2003. Lots of cool demo’s on Avalon (sorry, I now must say WCF) and your usual 3D animated user interfaces. Yesterday we got to pick up the Goods as they keep calling the PDC DVD sets. Actually it appears that there are a lot of GB’s on the DVD’s but only one DVD contains stuff that is new.

    They demonstrated this new stuff they call LINQ witch is really a cool way of working with data in your application. It is an extension on the .Net platform so all languages can now integrate set based query langue constructs within their normal applications. This stuff is really cool and will provide a real productivity gain in terms of writing data intensive code.  Have a look on how this can change the way you write your code:



    Below you see your average way of working with ADO




    SqlConnection c = new SqlConnection(…);
     c.Open(); 
     SqlCommand cmd = new SqlCommand( @”SELECT c.Name, c.Phone  FROM Customers c  WHERE c.City = @p0″
    );



     cmd.Parameters.AddWithValue(“@po”, “London”); 
     DataReader dr = c.Execute(cmd); 
     while (dr.Read()) {
         string name = dr.GetString(0);
         string phone = dr.GetString(1);
         DateTime date = dr.GetDateTime(2);
     }



     dr.Close();




    Now the same results with the use of DLinq (This is LINQ for relation database access, they also have XLinq wich is especially for XML access and you can combine them troughout your code !)




    public class Customer
    {
        public int Id;
        public string Name;
        public string Phone;
        …
    }




    Table<Customer> customers = db.Customers;




    var contacts = from c in customers
        where c.City == “London”
        select new { c.Name, c.Phone };





    Now I have all my contacts with this DLinq expression and I can iterate over the contacts….. now that is power to the developer 🙂



    In 2004 I was disappointed that Objectspaces would not make it to the final product, but now I am glad it didn’t this is way better and more powerful!


    Share this

Marcel de Vries

View profile

Related IT training

Go to training website

Related Consultancy solutions

Go to infosupport.com

Related blogs

  • What's new in C# 12, a developer perspective

    What's new in C# 12, a developer perspective Tom van den Berg - 2 weeks ago

  • Continuous validation - Ensuring Availability and Resil…

    Continuous validation - Ensuring Availability and Resil… Tom van den Berg - 1 month ago

  • Continuous validation - Ensuring Availability and Resil…

    Continuous validation - Ensuring Availability and Resil… Tom van den Berg - 1 month ago

Data Discovery Channel

  • Data+AI Summit 2023

  • Blijf je Azure cloud omgeving de baas met CloudXcellence

  • MLOps

Nieuwsbrief

* verplichte velden

Contact

  • Head office NL
  • Kruisboog 42
  • 3905 TG Veenendaal
  • T +31 318 552020
  • Call
  • Mail
  • Directions
  • Head office BE
  • Generaal De Wittelaan 17
  • bus 30 2800 Mechelen
  • T +32 15 286370
  • Call
  • Mail
  • Directions

Follow us

  • Twitter
  • Facebook
  • Linkedin
  • Youtube

Newsletter

Sign in

Extra

  • Media Library
  • Disclaimer
  • Algemene voorwaarden
  • ISHBS Webmail
  • Extranet
Beheer cookie toestemming
Deze website maakt gebruik van Functionele en Analytische cookies voor website optimalisatie en statistieken.
Functioneel Always active
De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.
Voorkeuren
De technische opslag of toegang is noodzakelijk voor het legitieme doel voorkeuren op te slaan die niet door de abonnee of gebruiker zijn aangevraagd.
Statistieken
De technische opslag of toegang die uitsluitend voor statistische doeleinden wordt gebruikt. De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door uw Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.
Marketing
De technische opslag of toegang is nodig om gebruikersprofielen op te stellen voor het verzenden van reclame, of om de gebruiker op een website of over verschillende websites te volgen voor soortgelijke marketingdoeleinden.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Voorkeuren
{title} {title} {title}