엔티티 프레임 워크를 사용하여 ID로 객체를 삭제하는 방법 아래와 같이 엔티티 프레임 워크로 삭제하기 전에 객체를 검색해야하는 것 같습니다. var customer = context.Customers.First(c => c.Id == 1); context.DeleteObject(customer); context.Savechanges(); 그래서 저는 데이터베이스를 두 번 쳐야합니다. 더 쉬운 방법이 있습니까? Entity Framework 6에서 삭제 작업은 Remove. 다음은 예입니다. Customer customer = new Customer () { Id = id }; context.Customers.Attach(customer); context.Customers.Remove(customer); ..