I have been trying to experiment Devforce code-first with MySql. But am not able to find any resources explaining how to do it. Even am not able to find whether DevForce code-first supports MySql or not. (EF supports). Please help!
Thanks,
Kannan
DevForce is generally ignorant about the underlying database provider, and doesn't have any special requirements to work with MySQL. If you follow DevForce documentation for working with Code First, along with MySQL documentation for working with EF, you should be on the right track. If you're using a paid version of DevForce, contact support directly to get more information if you run into problems.
Related
EF7 claims to support lots of providers, but I'm having trouble finding documentation about which ones currently exist. I'm particularly interested in MySQL and Postgres providers.
ATM EF7 still under development, currently it only support SQL Server, SQLLite and Azure Table Storage.
Since the code based still not standardized, when it standarlized MySQL (Oracle) will work on the providers.
Another update for the question, EF7 is starting to support PostgreSQL, Please have a try on this below article.
http://druss.co/2015/04/vnext-use-postgresql-fluent-nhibernate-from-asp-net-5-dnx-on-ubuntu/
I've been searching for an example on how to connect to a MySql database and use F# type providers but I could not find anything online.
Can anyone give me a clue? What - if any - extra packages do I need? Do I use SqlDataConnection or SqlEntityConnection.
Excuse my ignorance but I'm totally lost. Any and all help is appreciated. I love the idea of type providers and have a fair amount of experience with functional programing but it's the setup around this that gets me.
I don't think there is out-of-the box type provider that would work with MySQL at the moment. However, Ross McKinlay has been working on a better type provider for SQL databases (more generally). It currently works with MS SQL server and SQL Lite.
It should be possible to write an extension to support MySQL with fairly small amount of work (but sadly, it has not been done yet). See his blog for details. I'm sure that contributions are welcome!
I haven't tested this, but if Entity Framework works with MySql (it does) and if F# has an Entity Framework Type Provider (it does) then I would expect the Entity Framework Type Provider to work with MySql.
Have you tried that approach?
If you are still interested, I recently added support for MySQL to my SQL type provider, help with testing would be good!
A general SQL database type provider, supporting LINQ queries, schema
exploration, individuals and much more besides.
The provider currently supports MS SQL Server, SQLite, PostgreSQL,
Oracle, MySQL and MS Access. All database vendors except SQL Server
and MS Access will require 3rd party ADO.NET connector objects to
function. These are dynamically loaded at runtime so that the SQL
provider project is not dependent on them. You must supply the
location of the assemblies with the "ResolutionPath" static parameter.
https://fsprojects.github.io/SQLProvider/
I think I actually got it to work!! Here's what I did:
Installed the MySql Connector
Added to and referenced MySql.Data & MySql.Data.Entity in my project
Added and EntityFramework 5.0 to my project
Added both MySql.Data & MySql.Data.Entity to the GAC.
Then I was able to use SqlEntityConnection and get the types!
There's gotta be an easier way to do this though. I particular, adding stuff to the GAC should not be a part of all this process. I mean, am I asking to much for this to work pretty much "out of the box"?!
Unfortunately, I'm extremely unfamiliar with .Net yet, so I couldn't get the whole thing working with the App.config file. Based on my searches here, it looks like I'm not the only one having troubles with this. If anyone has any feedback/suggestions please help!
I am trying to develop an application in the OO way. That is, I intend to design objects for all business components rather than design a form for a process. I am completely new to this.
Anyhow, I discovered InstantObjects and was quite impressed. However, I don't see any code that can help me use MySQL with it.
Has anyone done this before?
Nirav
AFAIK, u can use mySQL ODBC driver, ADO COnnection, InsntanObject ADO Broker to connect mySQL. Don't use DBExpresse since it doenst support mySQL 5.
I am planning to use Locomotive for a project...But as the official website says it cannot work with MySQL. However my requirement is to use it with MySQL.
Has any one used it with mySQL? Any pointers or advises would be great. Thanks.
Cheers,
Abi
Locomotive uses Mongoid - which is an ORM for MongoDB. As such, you cannot use it with MySQL at all, since it leverages some features (dynamic attributes), which traditional RDBMS databases (such as MySQL) do not support.
That being said, MongoDB is pretty easy to install, so if you can get around your requirement of MySQL, then you should have no problems.
Decoupling Locomotive from MongoDB would be no small task at the moment, which is not to say that it is impossible.
Regarding your requirement of MySQL, if you are working on incorporating Locomotive into a larger web-application, one thing to consider is that your non-Locomotive models can still live in MySQL regardless of where Locomotive keeps its data.
From what i know it wont be possible to use locomotive only with mysql as it use heavily mondodb.
However it's not a problem to build your app living together with locomotive and use what ever orm you like.
Just configure your database.yml and the magic will happend ;)
cheers,
Gregory horion
I need help in setting up dbdeploy for my SQL Server database and MySQL Server.
The example in the dbdeploy website does not tell me how to set the drivers for SQL Server and MySQL. Am a bit lost.
Sample scripts will be appreciated.
Thanks
As part of some ReadyRoll market research we commissioned a poll in the Simple Talk newsletter which revealed that DBUp is now the most adopted database migrations tool after EF migrations, so it would be worth considering this solution as an alternative to DBDeploy.
(Simple Talk's audience is primarily people who use the .NET/SQL Server stack)
Disclaimer: I work for Redgate and the research described above was focused on understanding how ReadyRoll could provide additional value on existing OSS migrations-based solutions.
I tried to use dbdeploy for my project with MSSQL 2008
But I didn't like it and now for MS SQL we use Agile DBRIRE