I want to build a WPF application that can support multiple data sources, local and remote. There is a configuration that switches between 2 modes. What I'm planning is:
- Client: WPF application with MVVM Framework.
- Local data source: SQL Server 2012 and Entity Framework 6.
- Remote data source: WCF data services.
Both local and remote data sources share the same data model. The problem I'm facing is the objects returned from local and remote data source are different. For instance:
- Local: Project.Model.Employee
- Remote: Project.WCFDataService.ServiceReference.Employee
For this reason, I can't bind objects to WPF Views. Is there any easy/safe way to convert these objects? Any other suggestions?