1
저는 EF4를 사용하여 모델을 생성하고 있습니다. 내 아키텍처는 다음과 같습니다.EF4 : 인터페이스를 사용한 Compex 상속
IMyEntity (custom interface)
-> MyEntity - EF generated class
IMyOtherEntity (custom interface)
-> MyExtendedEntity (Customn Partial class) : MyOtherEntity (EF Generated)
첫 번째 엔티티에는 MyExtendedEntity의 목록이 있습니다. 엔티티 프레임 워크와 바인딩 할 수있는 방법이 있습니까? ASP.NET과 WPF를 대상으로합니다. 내가 가진 주된 장점은 WPF에서 ObservableCollection이 필요한 반면, EF 생성 클래스는 ObservableCollection에서 파생되지 않은 EntityCollection 만 가지고 있다는 것입니다.