|
Answer» Silverlight supports database connectivity. It is done through LINQ to SQL classes.
- Add a new WEB to the solution for hosting the control" radio button is checked. And click on OK.
- Add a new LINQ to SQL class in App_Code folder
- Use server explorer and drag and drop the required table in DataClass
- Add a new Silverlight-enabled WCF SERVICE in Web Project. - WRITE code on Service.cs to retrieve DATA from tables. - Use DataClassesDataContetxt class to create OBJECTS. - Use a variable to store the data from a table Silverlight supports database connectivity. It is done through LINQ to SQL classes.
- Add a new Web to the solution for hosting the control" radio button is checked. And click on OK.
- Add a new LINQ to SQL class in App_Code folder
- Use server explorer and drag and drop the required table in DataClass
- Add a new Silverlight-enabled WCF Service in Web Project. - Write code on Service.cs to retrieve data from tables. - Use DataClassesDataContetxt class to create objects. - Use a variable to store the data from a table
|