I have a silverlight application which reads data from a db and displays them in a grid. As far as i understand it there are two ways to do it. 1) Read db with a server-side language, such as php, create a file in the server which you can later use in Silverlight to read the data. 2) Connect "directly" using Silverlight code with your db and do your job there. I have read some posts that explain more or less how this is possible, but i haven't found a working example.
I really need to go towards the 2nd approach. Can anyone provide a simple example on how to connect and query to your mysql db safely from Silverlight?
Thank you.