I have a table which is a table of pictures and other file types. I want to edit the name field. Normally I would do this:
var file = Db.Files.First(f => f.FileID == id);
file.Name = "NewName";
Db.SaveChanges();
However, in this case this will pull the entire varbinary(max) from the database server for no reason. Is there a way to edit an item without getting the entire EntityObject? Perhaps I can use stub entities or something?