You have to delete and save, because until you save, it is only deleted in memory.
However, when you switch to DF2012 and VS 2012, the syntax is much easier
you can simply do something like:
public async void Delete()
{
myEntity.Delete();
await SaveAsync();
}
public async Task SaveAsync()
{
return entityManagerProvider.Manager.SaveChangesAsync();
}
Edited by smi-mark - 03-Oct-2012 at 10:29am