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.
Archive for November, 2009
Disable touchpad on dell latitude with 64bit Windows 7 – Alps driver
Posted in English, Technology on November 29, 2009 | Leave a Comment »
Removing attached object (1..n relation) in the Entity Framework
Posted in English, Technology on November 18, 2009 | Leave a Comment »
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 [...]
Table treated as view when no primary key is defined in the DB
Posted in English, Technology on November 18, 2009 | Leave a Comment »
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. [...]
Linq to entities insert problem – make sure the qualifiedEntitySetName is correct
Posted in English, Technology, tagged Linq2Entities on November 4, 2009 | Leave a Comment »
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 [...]