.Net 4.0 Beta 2 Entity Framework – How To Set Up Complex Types, Now With More POCO
So something I’ve seen but just have now conquered is the whole complex type thing in Entity Framework. Not only that, but with the cool new Persistence Ignorance thing all the kids are talking about. (And boy am I glad there’s a new kind of ignorance on this site now.) You might ask: What’s a [...]
.Net 4.0 Beta 2 Entity Framework – Many To One and POCO / INSERT statement conflicted with the FOREIGN KEY constraint issue
So the next step in the New Entity Framework saga was to make a many to one relationship and get it to save. After all, with the last version I had far more issues with many to one than any other kind of relationship. Turns out, the steak is still in tact. Taking the structure [...]
.Net 4.0 Beta 2 Entity Framework – How To Start
So I just recently turned my laptop into a 4.0 workstation since it is kind of expendable and I won’t feel inclined to nerd rage if it gets tooled. With this step forward, I decided that I probably won’t be doing much with the old Entity Framework version since the new one is supposed to [...]
Entity Framework: Am I Just Being Stubborn?
Before I started using The EF, I had a couple years of use with LLBLGEN and about a year into NHibernate. I started dabbling with Linq to Sql for a bit but found it a bit lacking (As it was new, go figure) and decided to go forward with Entity Framework due to the fact [...]
Entity Framework: LINQ to Entities only supports casting Entity Data Model primitive types
So in typical tool fashion I posted this little gem without realizing a glaring error… the order by clause. The whole idea is to create a method that can get a collection, sort it, then grab a certain number for paging. The issue was this: Expression<Func<K, IComparable>> orderBy The problem comes in when the entire [...]
Entity Framework: Reusable Paging Method
OBSOLETE… sort of. Found an issue with this and am posting the issue today. (07/21/2009) A while back I decided to show some paging stuff and I forgot that recently, well ok in the last few months, I actually put together a sort of generic extension method to take care of most of the paging [...]
Entity Framework: Possible Lazy Loading Solution
So been a while since I posted last, and I’m sure everyone has been worried. Turns out that I’ve been banging my head against the wall named MVC. And man I have a slew of new posts back logged for when I have more time. However, due to the new project I’ve been working one, [...]
Entity Framework, Include, and Data Item classes
So found something interesting out the other day, and maybe you already knew this but I didn’t so I’m going to post about it. Don’t like it? Too bad. One things nice about the Entity Framework is the ability to create or fill a class on the fly with the Linq query methods/language. You.. you [...]
Just Use the Stupid Functionality
So something I’ve come across time and time again since starting to use ORMs (about 3 or so years ago) was the infamous “hydrate a reference object just to save another.” If you haven’t had this before, you probably will anyhow, but here’s what it is. Say I have a “Manny” object and I need [...]
Paging and the Entity Framework, Skip, and Take Part 3
Get the total count of pages. | Get the real page number. | Using Skip and Take to Page | The Actual Paging Controls Ok so the last two posts have been arguably useless, maybe more so than anything else here, but they were somewhat needed because now I am going to show how to [...]



