How to connect silverlight application to database

By Vunris | 04.11.2020

how to connect silverlight application to database

Database connectivity using silverlight

You can use WCF service to do the business logic to retrieve data from Database in Silverlight application. To retrive the data, it should use serialized object. If you are using your own object, then don't forget to declare the object class as DataContract class & all the members as DataMember. [DataContract] public class MyObject { [DataMember]. What's the simplest way to connect Silverlight app with SQL Database. Ask Question Asked 9 years, 2 months ago. Active 9 years, 2 months ago. Viewed 4k times 1. 1. I am building a Silverlight 4 app that's going to be out of browser with elevated privileges - what's going to be the simplest and most direct way for the clients to access the SQL.

I have searched the net for three days nowall i know is that i got to use web services to connect to the mysql database in silverlight but could any one enlighten me how to do it considering the fact that i don't know web servicesi have tried doing a sample web service application but just dint help ,plz if some one could help me its really urgent ,may be a sample code or some guideline of how i go about it would help.

The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Programming Silverlight with. NET — General. NET applications. Sign in to vote. Hi all, I have searched the net for three days nowall i know is that i got to use web services to connect to the mysql database in silverlight but how to apologize to your friend any one enlighten me how to do it considering the fact that i don't know web servicesi have tried doing a sample web service application but just dint help ,plz if some one could help me its really urgent ,may be a sample code or some guideline of how i go about it would help.

Thanks, Mario. Tuesday, September 2, AM. Hi, you Can check these link for some samples. It's not about Silverlight, it's about Web Service. Just create a Web Service and connect to your mysql database, then create methods you need. Wednesday, September 3, AM. Excellent article, thanks for sharing! Wednesday, September 3, PM.

Table of Contents

Jul 30,  · Silverlight aims to compete with Adobe Flash and the presentation components of Ajax. It also competes with Sun Microsystems' JavaFX, which was launched a few days after Silverlight. In this article I m going to discuss how to do database connectivity and show data in DataGrid using Silverlight Enables Web Service. Silverlight cannot connect directly to database servers, you have to connect via web services or WCF etc. If you feel adventurous you could try to compile the MySql drivers on Silverlight. Permalink. Hi all, I have searched the net for three days now, all i know is that i got to use web services to connect to the mysql database in silverlight but could any one enlighten me how to do it considering the fact that i don't know web services, i have tried doing a sample web service application but just dint help,plz if some one could help me its really urgent,may be a sample code or some.

In this article, I am going to discuss how to do database connectivity in silverlight using DataGrid. Silverlight is a new cross-browser, cross-platform implementation of the.

The plugin required to run Silverlight is very small in size hence gets installed very quickly. It is combination of different technolgoies into a single development platform that allows you to select tools and the programming language you want to use. Silverlight integrates seamlessly with your existing Javascript and ASP. Silverlight aims to compete with Adobe Flash and the presentation components of Ajax. As you all know just create a new project using Silverlight Application.

And by default "Add a new Web to the solution for hosting the control" radio button is checked. And click OK. And using server explorer drag and drop your table in DataClass. And you will see like this. Now let's write some code on Service. I am wriring all code here. Allowed ]. ToList ;. I am fetching all data from my Vendor table.

You can put your condition according to your requirment. If you want use my Vendot data. Now add service reference in References folder. Now let's drag and drop DataGrid on Page. And this code on Page. ServiceClient ;. GetVendorsAsync ;. GetVendorsCompletedEventArgs e.

Now debug your project and you will get this error message. And now set Web Project as startup project and TestPage as set as start page. And debug now. Result will look like this. For more information I am attaching my project with database. If you have any question or queries then mail me or comment me using c-sharcorner comment section. View All. Database connectivity using silverlight. Raj Kumar Updated date Jul 30, I am wriring all code here using System; using System.

Linq; using System. Serialization; using System. ServiceModel; using System. Activation; using System. Generic; using System. Vendors select vendor; return mVendors.

ServiceClient ; webService. Next Recommended Article. Classes And Objects. NET Core.

5 thoughts on “How to connect silverlight application to database

  1. Tesho

    Wil not let me download file said it was dangerous mediafire said that, not my antivirus

    Reply

Add a comment

Your email will not be published. Required fields are marked *