Strongly Typed Query
Posted: Tue 15 Sep 2009 18:34
Dear Friends,
I am developing a Web Service in Visual Studio 2008 (3.5 SP1). The web service will connect to a MySQL database and retrieve information based on certain parameters. Being that the MySQL database is 4.2.X, I am aware that I cannot create new queries and stored procedures (please correct me if I am wrong).
I have built a query in dbForgeFusion for MySQL and would like to use it (or something similar) to execute the SQL itself as I DO NOT want to embed SQL statements directly into my web service code behind file (.CS). I have examined the "Web Service" sample that comes with dotConnect for MySQL and it displays exactly what I don't want to see: SQL statements embedded in the code.
Is there a method or process to build an SQL query and then use it to strongly type the results instead of having to embed SQL statements directly into my code.
Best Regards,
Giovanni
I am developing a Web Service in Visual Studio 2008 (3.5 SP1). The web service will connect to a MySQL database and retrieve information based on certain parameters. Being that the MySQL database is 4.2.X, I am aware that I cannot create new queries and stored procedures (please correct me if I am wrong).
I have built a query in dbForgeFusion for MySQL and would like to use it (or something similar) to execute the SQL itself as I DO NOT want to embed SQL statements directly into my web service code behind file (.CS). I have examined the "Web Service" sample that comes with dotConnect for MySQL and it displays exactly what I don't want to see: SQL statements embedded in the code.
Is there a method or process to build an SQL query and then use it to strongly type the results instead of having to embed SQL statements directly into my code.
Best Regards,
Giovanni