Can anybody tell me if there is a way to have a project that references both Entity Frameworks 5.x and 6.x? I have two separate data projects and one has to be EF 5.x, it's Actian Pervasive and they don't support EF 6.x. The other is a MS SQL Server done in EF 6.x. I'm needing to use both of these in another project to talk to both databases. I'm thinking I'm just SOL but thought I'd see if anybody has any suggestions.
Visual Studio 2015 project that references both EF 5 and EF 6 projects
66 Views Asked by dblwizard At
1
There are 1 best solutions below
Related Questions in C#
- TCP congestion control - Fast Recovery in graph
- Synchronizing a current message id in a conversation between Alice and Bob
- Connectivity in Android
- How to utilize all available bandwidth with real-time data?
- A UUCP blast from the past? What's next?
- How to detect SSTP traffic?
- any existing protocol for accessing photos or pictures on a remote server
- How much data transfer does a typical http request generate on EC2?
- Determining the time to receive in object using TCP
- Android - Java connection through wifi
Related Questions in VISUAL-STUDIO-2015
- TCP congestion control - Fast Recovery in graph
- Synchronizing a current message id in a conversation between Alice and Bob
- Connectivity in Android
- How to utilize all available bandwidth with real-time data?
- A UUCP blast from the past? What's next?
- How to detect SSTP traffic?
- any existing protocol for accessing photos or pictures on a remote server
- How much data transfer does a typical http request generate on EC2?
- Determining the time to receive in object using TCP
- Android - Java connection through wifi
Related Questions in ENTITY-FRAMEWORK-6
- TCP congestion control - Fast Recovery in graph
- Synchronizing a current message id in a conversation between Alice and Bob
- Connectivity in Android
- How to utilize all available bandwidth with real-time data?
- A UUCP blast from the past? What's next?
- How to detect SSTP traffic?
- any existing protocol for accessing photos or pictures on a remote server
- How much data transfer does a typical http request generate on EC2?
- Determining the time to receive in object using TCP
- Android - Java connection through wifi
Related Questions in ENTITY-FRAMEWORK-5
- TCP congestion control - Fast Recovery in graph
- Synchronizing a current message id in a conversation between Alice and Bob
- Connectivity in Android
- How to utilize all available bandwidth with real-time data?
- A UUCP blast from the past? What's next?
- How to detect SSTP traffic?
- any existing protocol for accessing photos or pictures on a remote server
- How much data transfer does a typical http request generate on EC2?
- Determining the time to receive in object using TCP
- Android - Java connection through wifi
Related Questions in ACTIAN
- TCP congestion control - Fast Recovery in graph
- Synchronizing a current message id in a conversation between Alice and Bob
- Connectivity in Android
- How to utilize all available bandwidth with real-time data?
- A UUCP blast from the past? What's next?
- How to detect SSTP traffic?
- any existing protocol for accessing photos or pictures on a remote server
- How much data transfer does a typical http request generate on EC2?
- Determining the time to receive in object using TCP
- Android - Java connection through wifi
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I don't think you can use two versions of the same library in the same project, but there are other workarounds. You can create 2 webapis, one pointing to your 5.x project, exposing the methods you want, and another one pointing to your 6.x project, doing the same exposure.
After that, on each webapi, you can create Api Clients in a contract like layer, and expose that to your clients via nuget.
to create clients that post to your webapi, check this post. From there, you cant create a client with something like this:
the BaseHttpClient class is just a class to abstract the implementation of the WebClient.
After doing that, you can expose this contract layer to your clients, via nuget, and they can simply do: