Last post Aug 13, 2015 09:30 PM by Krunal Parekh
Aug 05, 2015 09:25 AM|Nandu21|LINK
I request you to all, how can I implement these 3 technology in webapi.
Please provide simple CRUD operation examples or Links.
Thanks in advance,
Please help me ASAP.
Aug 06, 2015 09:03 AM|Rion Williams|LINK
Are you referring to wanting to use something like Entity Framework with MySQL?
If so, you could
follow a tutorial similar to this Web Forms one in order to essentially map all of your database objects to entities and then simply query the entities using familar LINQ syntax :
using(var context = new YourEntitiesContext())
This more recent blog post that isn't tied to Web Forms might help you as well.
Aug 11, 2015 01:07 AM|Nandu21|LINK
Thanks Rion, but still examples links that you provided me is not working.
Can you please provide me another some stuff or example links regarding to this(MySql with Linq with MVC).
thanks once again for ur reply
Aug 11, 2015 08:49 AM|Rion Williams|LINK
Did you see the second link that I provided?
It uses a very basic example of configuring Entity Framework to target a MySQL data source and once you have that configured, everything should fall into place and would work as it would with any other type of data connection (e.g. SQL, etc.).
You can find another more
in-depth tutorial on configuring Entity Framework with MySQL in ASP.NET MVC here as well. It covers step-by-step setting up the entities and data connections and uses MVC's built-in scaffolding to handle performing basic CRUD operations.
Aug 12, 2015 01:04 AM|Nandu21|LINK
Hii Rion thanks for ur great reply ,
I think this example will works for me, but there is some issue with this example that I mentioned below.
I also tried this example, but I dont know why my edmx diagram is not generated (Even after built solution).
Connection with Mysql database is created successfully but edmx diagram is not generated for appropriate table, So I'm doing some wrong things or mistake.
but on the other side edmx diagram is generated ,when I connect with MS SQL database.
Please reply or help me ASAP.
Aug 13, 2015 09:30 PM|Krunal Parekh|LINK
@Rion's Suggestion should work as per described in the article if you are still having issues you could post it on the
http://forums.mysql.com/ for more better response.