locked
Understanding how to Replace Silverlight RRS feed

  • Question

  • I am really trying hard to understand how to replace my Silverlight based LightSwitch project with something else and have a bunch of questions.

    I am trying to recreate a vanilla LightSwich project using parts since there is no way to directly convert Lightswitch projects that I know of to other technologies using C#.

    As I understand it I can create "Screens" with say a WPF or Windows Forms project. Is that correct? and If I wanted to use an online project I could use ASP.NET to make screens. Is that correct.

    How would I wire that up to a Lightswitch database or how would I recreate it? What type of project would I have to create to make the familiar tables with "Business Types" and "Intrinsic Database" management?

    To make "Combined Tables" like the ones using RIA services I used in Lightswitch would I need to use a WCF project? Which WCF project would I use? Again how would I wire this up to screens?

    I am guessing I use MVC code to make a User login and Roles screen. Is that correct? What type of Project is MVC code written under I don't see a straight MVC Project in Visual Studio C#?

    I am studying using the site .NET Pearls and have made this extensive study guide for myself. .Net Pearls Study Guide 

    Friday, November 6, 2015 4:42 PM

Answers

  • LightSwitch has a sever project that is really just an ASP.net project.  You can add other ASP.net server components to the LS server project, such as Web API and/or MVC.  If you don't want to use one of the LightSwitch clients, you can deploy LS as an OData Service and consume it from any client or controller that can consume OData.  If you just want to use the SQL server database that was used by your LightSwitch project, you can copy it or script it and use it in any other project.  RIA services are created using a Class Library project in C# or Visual Basic.  The MVC project is located under the Web Project templates in Visual Studio.

    • Marked as answer by reigh7 Friday, November 6, 2015 5:35 PM
    Friday, November 6, 2015 5:29 PM

All replies

  • LightSwitch has a sever project that is really just an ASP.net project.  You can add other ASP.net server components to the LS server project, such as Web API and/or MVC.  If you don't want to use one of the LightSwitch clients, you can deploy LS as an OData Service and consume it from any client or controller that can consume OData.  If you just want to use the SQL server database that was used by your LightSwitch project, you can copy it or script it and use it in any other project.  RIA services are created using a Class Library project in C# or Visual Basic.  The MVC project is located under the Web Project templates in Visual Studio.

    • Marked as answer by reigh7 Friday, November 6, 2015 5:35 PM
    Friday, November 6, 2015 5:29 PM
  • Ok so follow up what client projects can consume OData? can WPF or Windows forms do that? Also do you know of a good tutorial for consuming OData using those desktop platforms? I primarily want access to the file system so I believe a desktop solution would be best.

    Do you know of a good tutorial for making an RIA server class and wiring it up to a different client?

    I also want to experiment with copying or scripting a SQL database do you know of a good tutorial for that?

    Pardon the inexperience but examples that give some step by step may help me learn more.

    Friday, November 6, 2015 5:42 PM