Feeds:
Posts
Comments

Archive for November, 2009

After installing Windows 7 on my Dell Latitude D620, I couldn’t find a  driver to disable the touchpad (It was not automatically installed).
After scanning google and the Dell support website, I finally stumbled acrross this post.

Read Full Post »

When having 1…n relation between a base object and a list of other object, e.g. when a tournament has a list of players, removing one of the players from the list isn’t as obvious as one might expect.
var t = DB.Tournament.FirstOrDefault(c => c.Id == idTournament);
var g = DB.Golfer.FirstOrDefault(x => x.Id == idGolfer);
t.Golfer.Attach(g);
t.Golfer.Remove(g);
DB.SaveChanges();
This Stack Overflow post [...]

Read Full Post »

I was receiving the following error:
Unable to update the EntitySet ‘Player’ because it has a DefiningQuery and no element exists in the element to support the current operation.
Turns out that Entity Framework treats tables that are created without an explicit primary key, as views, and therefore does not generate an update function.   [...]

Read Full Post »

After drinking cold coffee in agony for 24 hours over the Insert functionality in Linq to Entities, I finally stumbled up on a good solution.  I had been getting errors like ..  “The member with identity ‘Entities’ does not exist in the metadata collection. Parameter name: identity” in the Context.AddObject() method.
First of all I found the core [...]

Read Full Post »