Is there any way to delete a row in a table without querying it first?
I need to delete a file with a large amount of data with loading it.
I saw this code below on EF and it does not seem to work with DevForce.
I guess I could attach a stored procedure.
---------------------------------------------------------------------
var file = new File();
file.FileId = CurrentEntity.FileId.Value;
file.EntityKey =
new EntityKey("PrimeEntities.Files", "FileId", CurrentEntity.FileId.Value.ToString());
PrimeEntities.
Attach(file);
PrimeEntities.
DeleteObject(file);
PrimeEntities.SaveChanges();