EF4로 다이빙 한 후 NHibernate를 배우려고합니다. Hibernate Session에 EF4 ObjectContext (또는 DbContext)와 동등한가?EF4 ObjectContext 대 NHibernate 세션
특히, EF4, 당신은 ObjectContext는 (또는 DbContext)에서 파생 클래스는 명시 적으로 예를 들어, 각 엔티티의 ObjectSet의, 포함 : 내가 지금까지 본 적이 NHib의 예에서
public class EcommerceContext : ObjectContext {
public ObjectSet<Customer> Customers {get; set;}
public ObjectSet<Product> Products {get; set;}
// etc.
}
, 세션을 객체는이 방법으로 사용되지 않습니다. 내가 놓친 게 있니?