using (var context = new JasminEntities())
{
var expType = (from o in context.tblExpTypes where o.Id == lvExpType.FocusedItem.Text select o).Single();
context.tblExpTypes.DeleteObject(expType);
context.SaveChanges();
}
上記のコードがあり、context.tblExpTypesを引数b'として渡す必要があります。これは、プロジェクトに削除タスクを必要とする多くのフォームがあり、パラメーターとして渡す方法と、関数でそのオブジェクトセットをチェックして削除するためです。