1 / 12

Linq to SQL Chalk Talk

Linq to SQL Chalk Talk. Freek Leemhuis Rob Huibers Logica. LINQ. Bestaat uit taal uitbreidingen in C# 3.0 en VB 9.0 Uitbreidbaar door LINQ providers voor externe data formaten (bijvoorbeeld MS SQL Server). LINQ to SQL.

stash
Download Presentation

Linq to SQL Chalk Talk

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Linq to SQLChalk Talk Freek Leemhuis Rob Huibers Logica

  2. LINQ • Bestaat uit taal uitbreidingen in C# 3.0 en VB 9.0 • Uitbreidbaar door LINQ providers voor externe data formaten (bijvoorbeeld MS SQL Server). LINQ to SQL • Een framework(OR mapper) voor het mappen van data classes op SQL Server tables, views en stored procedures.

  3. Taaluitbreidingen • Linq keywords • Extension methods • Partial Methods • Lambda expressions • Anonymous types • Object initializers • Local variable inference

  4. LINQ parts .Net APIs Providers Interne query engine LINQ to Objects LINQ to Datasets LINQ to SQL LINQ to XML LINQ to Entities IEnumerable IQueryable C# 3.0 VB 9.0 Others LINQ

  5. Object Relational Mapping Objects != Data Relationele Data Objecten

  6. Services:- Change tracking- Concurrency control- Object identity LINQ to SQLDataContext LINQ to SQL Architectuur from c in Context.Customers Where c.LastName.StartsWith(“Niks”) select new { c.Name, c.FirstName}; Customer c = new Customer();Customer.LastName = “Bos”;Customers.InsertOnSumbit(c);Context.SubmitChanges(); select Name, FirstNamefrom customerswhere Lastname like ‘Niks%' Dynamische SQLof Stored Procedure Applicatie SQL Server

  7. Het ADO.Net Entity Framework Conceptual Mapping Logical CSDL MSL SSDL Object Model Relational Data Table Entity Table Entity Table Entity Table Entity Table

  8. LINQ to SQL versus EntityFramework

  9. Linq to SQL in N-tier Architectuur

  10. Resources Starten met Linq http://msdn2.microsoft.com/en-us/library/bb308961.aspx http://www.asp.net/learn/linq-videos/ http://weblogs.asp.net/scottgu/archive/tags/LINQ/ http://www.hookedonlinq.com/ http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx Linqninjas http://blogs.msdn.com/mattwar/default.aspx http://weblogs.asp.net/fbouma http://codebetter.com/blogs/ian_cooper/ http://mtaulty.com LINQPad http://www.linqpad.net/

More Related