Convert EDMX file from MySQL to dotConnect?
Posted: Fri 24 Jun 2011 01:22
Hi Guys,
I have completely mapped our entire MySQL database using the Entity Framework and the MySQL provided Connector/Net. However I have run into some issues with their connector, so I was looking around at other options and discovered dotConnect. It looks to be exactly what I need, and I like the extra tools etc.
The problem of course is that my EDMX file is specific to the MySQL connector, and when I try to just change the provider over to work with dotConnect, it does not work due to the fact that types appear to be mapped differently on the connectors.
Are there any tools to help with converting a database first EDMX file from one database, over to dotConnect? I can't go through the entire process of mapping it all again, as that took a long time due to the fact that our database is all MYISAM tables so I had to manually build all the foreign key relationships (not to mention I renamed all the table columns to make more sense on the C# side, and be PascalCase).
Another option I would consider would be to ditch the EDMX files completely, and go with a Code First approach, if I can find something that would generate the correct Code First classes from an EDMX model. Seems like that should be possible using T4, but I have not found anything indicating that anyone has done or tried to do this?
I have completely mapped our entire MySQL database using the Entity Framework and the MySQL provided Connector/Net. However I have run into some issues with their connector, so I was looking around at other options and discovered dotConnect. It looks to be exactly what I need, and I like the extra tools etc.
The problem of course is that my EDMX file is specific to the MySQL connector, and when I try to just change the provider over to work with dotConnect, it does not work due to the fact that types appear to be mapped differently on the connectors.
Are there any tools to help with converting a database first EDMX file from one database, over to dotConnect? I can't go through the entire process of mapping it all again, as that took a long time due to the fact that our database is all MYISAM tables so I had to manually build all the foreign key relationships (not to mention I renamed all the table columns to make more sense on the C# side, and be PascalCase).
Another option I would consider would be to ditch the EDMX files completely, and go with a Code First approach, if I can find something that would generate the correct Code First classes from an EDMX model. Seems like that should be possible using T4, but I have not found anything indicating that anyone has done or tried to do this?