locked
Creating a table in code RRS feed

  • Question

  • User-14642827 posted

    Not sure where to please this question. My application is a desktop app (hand held device). We cannot use inline SQL strings in our due to security reasons. The project uses the MVVM pattern. Question? How can I use Model First to create tables in my database? Please show example or point me to a good tutorial...thanks.

    Monday, November 26, 2018 8:22 PM

All replies

  • User1120430333 posted

    Of course, this is the ASP.NET forums for Web based not Windows desktop based solutions. Although MVVM, an UI design pattern that implements seperation of duty, can be used for Web form based solutions too, traditionally MVVM is used with WPF.

    https://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP

    However, the ADO.NET Entry Framework is an ORM solution that really has nothing to do with a UI design pattern, which can be addressed at the MSDN EF forum.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=adodotnetentityframework

    Monday, November 26, 2018 9:23 PM