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
101 Views Asked by dblwizard At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in VISUAL-STUDIO-2015
- Tools for Apache Cordova - Installed Plugins are skipped in build
- Intellisense on Visual Studio 2015 RC for bower.json file is not working properly.
- ASP.NET 5 Class Library - Nuget package Web.Config transform
- Visual Studio 2015 RC - Cant add virtual directory
- How do I add an XML Doc Comment to a ClassDeclarationSyntax in Roslyn?
- NuGet throws "Unable to satisfy package dependency constraints" but no dependency is required in the package description
- Visual C++ - Virtual method is not overriden
- Where is memset Hiding In VS 2015?
- Tools for Apache Cordova - TypeScript debugger jumps to wrong line
- Visual Studio 2015 RC Cordova Tools - Plugin Fails to Launch
- Convert/downgrade visual studio 2015 solution file to 2013
- Issues using Visual Studio 2015 with Visual Studio Online Git project
- Can't build JavaScript universal Windows app
- Visual Studio 2015 Ignoring New Folders & Files
- How to add Project Reference in asp.net 5 application
Related Questions in ENTITY-FRAMEWORK-6
- EF 6 interceptor to set connectionstring
- Updating Entity Framework 6 Database C#
- ObjectContext is disposed, can not longer used
- EF6 model first - The entity type is not part of the model for the current context
- Integration testing the entity framework - separate the seed method call only for PROD -
- Entity framework conditional entity relation
- Entity Framework Decimal Truncation Issue
- Auto Increment ID in Composite key Entity Framework
- Using an 'if statement' correctly in a variable
- Updating entity with many to many relationship
- Entity Framework: Lazyloading appears to be off despite explicitly turning it on?
- Combining results from two classes
- EF Code First - Multiple Application Versions Sharing A Database
- Elegant way to model multiple reviewers for a form in MVC with Entity First
- After changing the table Entity Name in EF edmx designer then Not able to Create controller with Scaffolding options?
Related Questions in ENTITY-FRAMEWORK-5
- What is the latest .NET Framework that works with WCF RIA Services and EF 5.0 in a Silverlight 5 LOB application?
- EF one to many Relationship navigate
- Upload file to chosen folder
- Must not Entity Framework update some Fk properties automatically? Yes, he does, but sometimes not. Why?
- Why EF not updating FK column when entity state is not Added?
- Failed to generate type library for iAnywhere.Data.SQLAnywhere
- Entity Framework 5 multiple databases, single context
- Cannot implicitly convert type 'ADDRESS' to 'API.Models.ADDRESS'?
- How do I display the first item in my ComboBox based on my dataBinding?
- Return to the same view when no image is selected
- Get Identity of all objects after SaveChanges
- What are different types of Entities in Entity Framework?
- Remove Entity Framework's extra lookup of RowVersion columns
- Context.saveChanges() modifies foreign key that has already been set
- Entity Framework update model from database issue
Related Questions in ACTIAN
- Pervasive v11: Remove optional paramter in where clause
- Actian/Pervasive SQL and Date Variables
- Table properties using SQL in Pervasive SQL control centre
- connect to ingres database from windows
- Actian/Pervasive PSQL Zen 13.30 error 46 random ocurrences
- How to find number of tables in a database and size of database Pervasive
- How do I load a csv file into actian table?
- date difference in minutes for Ingres
- Does Actian PSQL 13.31 (Zen) have the equivalent of SQL Server "IN" in WHERE clause?
- Check if fields in a column are dates and convert them
- How to get a list of dates in Pervasive SQL
- Remove spaces from right and left (TRIM) all selected columns
- Unlock a table of a ingres database
- Insert pandas dataframe into actian PSQL database table using python
- Precision error when using OPENQUERY and Global Shop Solutions/Actian backend
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 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: