I have plans to build an MVC 6 website that will be hosted on Linux, and I'm in the initial testing phase to see how the new ASP.NET 5 (vNext) and MVC 6 work, and can I deploy everything on Linux.
My site must use a database, and since it will be deployed on Linux, I cannot use SQL Server. I would really like to use MySQL, but maybe there are other alternatives? Let's say at the moment I need MySQL if this is not possible.
I understand that all of this is still in beta testing and not ready for production, but I just want to do the initial setup to make sure everything works before I start working on the actual website. I can not do this if there is no database connection ...
Soon, I found out that there is not yet a MySQL connector for Entity Framework 7 that uses MVC 6. Does this mean that Iโm out of luck and have to wait until a new MySQL connector with support for EF7 appears? Or can I go back to EF6 on the MVC 6 website that supports MySQL? I tried to add unlocks to EF6, but there are so many dependencies in the MVC 6 template by default that all EF7 links are completely lost and have no idea how to approach this, if at all possible.
So, we summarize:
- Can I use EF 7 with MySQL already, or do I need to wait until the new MySQL connector supports this?
- Can I go back to EF6 and still use MVC 6 and deploy to Linux (using Mono)? If so, how do I configure this?
- If all else fails - can I use another database with MVC 6 on Linux / Mono?
mysql mysql-connector asp.net-core entity-framework-core
Nick Thissen
source share