February 2008 - Posts
But I only just realized that extension methods are cool for avoiding NullReferenceExceptions . We all know that if you have something like this: LicensePlate licensePlate = null ; Car car = licensePlate.Car; It will throw a NullReferenceException . However
Read More...
So if you don't already know Julie is a hugely respected member of the EF community. She does mentoring and heaps of training and presentations about the EF, so she knows what she is talking about. Anyway I just finished listening to her interview with
Read More...
I'm assuming you've read part 1 and part 2 , if not why not? Just kidding, they will make this post a little easier to understand though. I'm going to show you how to create a read-only association with a Payload. Okay so imagine you have this model:
Read More...
I invite you to take a look at this forum post from 'Benys' It illustrates the power of the Entity Framework's mapping capabilities + partial classes. The short answer to a lot of "Does the EF support ... ?" type questions is often no. Often however the
Read More...
Okay so the 'cat is out of the bag' you CAN do associations with Payloads... Sort of . Now for an explanation of what I meant by 'Sort of'. Let's dream a little and imagine how it might work in an ideal world. Imagine something like this: Product p =
Read More...
Those of you who know what I am talking about will probably also know that we have been saying publicly that the Entity Framework doesn't support them. Now for those who don't know what an association with a payload is, imagine something like: Order <-
Read More...
Okay so we've got to the interesting bit at last. We've hooked up our extension method, we've got a query for filtering the records we are updating, we've got a map from object Properties to database Columns. So now comes the interesting bit... We now
Read More...
Okay, okay, okay... yes I know this is the slowest moving series in the history of blogging (sorry Roger J). Now, when a blog post starts like that, you would probably expect the next sentence to begin with "But" or "However", not this time though, I
Read More...