DLinq Mapping: External Or Not (Attributes or XML file)

At PDC (and before that on ObjectSpaces project), this was a hot discussion topic. What approach is better: attributes or external source like an XML file. I would like to open up this topic beyond the 1:1 conversations at PDC to the blogosphere. I will start with a small backgrounder and you tell us which…

27

LINQ to SQL (fka DLinq): What’s new in Orcas beta2

Orcas beta2 is here for you. This is significantly ahead of beta1 and pretty close to the final feature set of Orcas for most components. The releases are available both as regular installs and as VPC images.   Now that Orcas beta2 has been released, it is time to look at what’s new there. But first,…

22

Attach() if you have something detached

It is clear from the forums that this whole business of attaching detached objects in LINQ to SQL (DLinq) is confusing. Some of it is intrinsic, some is perhaps our design and perhaps a bit attributable to the misnomer “detached object support”. More about the misnomer later but first here is the skinny on Attach() set of…

20

DLinq: What’s cooking in the kitchen

OK, after hibernating in the winter, I am back on the blog. Some of you joined us on DLinq chat last week so you already have a sense of what is going on. For others, here is a peek at what we are working on: Inheritance: table-per-hierarchy: It turns out that this feature is more…

18

ObjectSpaces -> DLinq

Soon after Anders + Don demo in PDC keynote, several folks asked me about ObjectSpaces. It was one of my favorite projects (notice the past tense). But it is time to talk about its future rather than past. The future of ObjectSpaces is DLinq. We used the feedback we got on ObjectSpaces to design DLinq as…

17

Lazy ORM users deserve it!

Let’s say you build an app that uses a traditional ORM concept of lazy loading. Your app binds an Order object to a grid and lets the user lazily load related objects like OrderLines. Your user – a normal cubicle dweller, queries for an Order and then decides to go get some coffee.  She comes…

14

Should DLinq support a read-only stream of objects?

Currently, when DLinq retrieves entities, it automatically inserts them in an identity cache. This ensures that if you run two queries whose results overlap, you get the same objects by reference – not copies. The object reference after all is the identity in CLR world. This ensures that when you change an entity, you don’t…

13

LINQ to SQL: What is NOT in RTM (V1)

Most of my posts have been about what is new in beta2 or RTM or how you can do great things with feature X and how bug Y has been fixed. Now that we are practically done with V1, it is time to do the somewhat unpleasant task of saying – sorry, this is not…

13

LINQ to SQL breaking changes from beta2 to RTM (compiled from my LINQ forum posts)

Now that we are in the final weeks of locking down for RTM, it is worth tallying up the changes. Since betas are a bit experimental and intended for receiving feedback, the fact that there are changes shouldn’t be surprising but we could do a better job of communicating the changes to our best customers -…

13