Browse by Tags

Tagged Content List
  • Blog Post: SQL CE 3.5 with LINQ to SQL

    Using LINQ to SQL with SQL CE 3.5 can be a bit of a challenge. First off, the LINQ to SQL Visual Studio designer doesn't support SQL CE so you need to run sqlmetal from the command line to create the object model (or write it by hand). Once you get past this point then you can use LINQ to SQL the same...
  • Blog Post: Generic Insert and Update for LINQ To SQL

    Quick code snippet time! The following are generic methods for inserting and updating a detached entity into a database using LINQ to SQL. 1: /// <summary> 2: /// Updates the database with item. 3: /// </summary> 4: /// <typeparam name="T">Type of the item<...
  • Blog Post: Intro to LINQ to SQL Optimistic Concurrency

    After some investigation I feel I have a decent understanding on how LINQ to SQL concurrency works. LINQ to SQL uses optimistic concurrency which means that it never takes an exclusive lock on a table.  It caches the information you are working with and then (by default) when you submit changes verifies...
  • Blog Post: Useful LINQ Method- GetMemberTypeChain

    Recently, I have been working on a custom LINQ provider in C#. In a later post (when I have more time to write) I will go in depth into what I am worked on and what have I learned about writing a LINQ provider. But for now I will present a simple function that simplified part of my work. It is called...
  • Blog Post: Visualizing LINQ

    I ran across an awesome code sample written by Jon Skeet . He realized that many people may have difficulty understanding how the lazy evaluation in LINQ (and programming with iterator combinators in general) works. His program/code sample is able make the lazy evaluation clear by animating it on the...
  • Blog Post: Foray into LINQ

    With the release of .NET 3.5 I started playing around with one of the cool new technologies called LINQ.  LINQ brings SQL like querying syntax for performing operations on data sources like collections into , files or databases into .NET.  The LINQ website describes LINQ as: The LINQ Project is a codename...
Page 1 of 1 (6 items)