Browse by Tags

.NET RIA Services Resources (for March 2009 Preview)
Some of it is covered in my previous post and on Silverlight.net but here is a summary: Bits (prereq: Visual Studio 2008 SP1, Silverlight 3 beta tools for VS): RIA Services March Preview (unveiled last week at MIX) Documentation / video A PDF file with Read More...
.NET RIA Services is now public
A few folks have asked me what I have been up to after wrapping up LINQ previews and V1. I have not been able to answer that question satisfactorily because what we were working on was non-public (well almost except the mention of now obsolete name "Alexandria" Read More...
"Essential LINQ" book to be published tomorrow
I have been underground for a while - trying to wrap up the LINQ book and working on some exciting stuff for Silverlight. For the latter, my lips are sealed until Mix 209. For the former, it is a different story ... Last month, I finally finished all Read More...
.NET Framework 3.5 SP1: LINQ perf improvements (LINQ to Objects and LINQ to SQL)
There are three perf improvements in the just released SP1 . As always, I will let you run your own microbenchmarks or more meaningful app-level benchmarks. LINQ to Objects: Specialized enumerable: The new implementation recognizes queries that apply Read More...
Templated code gen for LINQ to SQL
This is going to be a brief one. If you are using LINQ to SQL, you should check out Damien's new templated code generator sample. One of our regrets from LINQ to SQL V1 days was not providing an easy way to tailor the code-gen. This is one step in that Read More...
Relational-Object-XML-Object with LINQ to SQL & LINQ to XML
This is old story and I have used parts of it over the last three years to show how LINQ lets you navigate from relational (R) to object (O) or object to XML (X) etc. But for a forthcoming demo, I had to write some quick code today and it looked like Read More...
LINQ to SQL Tips 9: Understanding DataContext's internal caching
Back to the "tips" series after a little break ... One common question I get is about caching of data in LINQ to SQL. It means a lot of different things so let's start with the following baseline: LINQ to SQL was designed to get you objects from the database Read More...
An account of Bill Gates' farewell
An unusual subject for this blog that has been mostly about components I have worked on. But the event yesterday was memorable and worth sharing. The event has been covered widely so I won't even try to broadly summarize. Insted I will list what I found Read More...
Design of LINQ to SQL - What was I thinking or was I?
A little break from my "LINQ to SQL tips" series of posts. A recent vote of no confidence on a related component orchestrated by community activists reminded me of many questions I have fielded and how the design team approached the design of LINQ to Read More...
LINQ to SQL Tips 8: How to (and why) create a partial class in the designer to augment generated code
The code generated for LINQ to SQL is a set of partial classes - one for your DataContext and one per entity mapped to a table or a view. That means you have the opportunity to augment the generated code with additional code in your partial class. I often Read More...
LINQ to SQL Tips 7: Minimal update when you don't want optimistic concurrency check
The common guidance for updates is to keep the original values in view state so that you can recreate the object in its original state, Attach() it and then set the values that the user has modified. This works well for the most part. But at times, a Read More...
LINQ to SQL Tips 6: How to refresh given DataContext won't stomp on your objects
The DataContext is a rather careful beast. Once an object is retrieved, the DataContext will not stomp on it if a query returns the same object again. This is intentional. Imagine the chaos if you modified some of the retrieved objects or even read the Read More...
LINQ to SQL Tips 5: Using stored procs that return multiple results
Often I get the following questions about stored procs in LINQ to SQL: I have sproc that returns multiple results. How can I use it in LINQ to SQL? Can I use a sproc that returns results of different shapes; e.g. Customers and Orders? I drag-dropped a Read More...
LINQ to SQL Tips 4: Use DeleteOnNull if you want to delete object with null FK
I often get a question along the following lines: If I remove one of the OderDetails from Order.OrderDetails collection, I see that the reference OrderDetail.Order is set to null but this just orphans the OrderDetail; it is not deleted. How can I change Read More...
LINQ to SQL Tips 3: Deferred (lazy) or eager loading of related objects with stored procs
This post is a confluence of two distinct sets of comments I got: The above-mentioned feature is a well-hidden secret; and I post code only in C# while there is a big community of VB users who like LINQ to SQL So here we go ... First, the MSDN docs on Read More...
More Posts Next page »

Search

This Blog

Syndication

Page view tracker