MVVM model witout using the EntityFrameWork (Razor) RRS feed

  • Question

  • User-1063667917 posted


    I'm a rookie at Net Core using Razor pages and I have doubts about how to use the MVVM model but witout using the EntityFrameWork (which I consider it useful just on basic things)

    So I'm doing this, please let me know if I'm wrong on best practices:

    Model - It's a pure class file with only properties inside the Models directory
    View - HTML and C# code behind

    So far, so good, but where should I put the database and logical layers? (like LoadClients using LoadDatatable)

    I created a directory "Classes" and there I have Clients.cs and Database.cs.

    am I doing something wrong with this?

    Maybe functions in Clients.cs should be inside the Model...

    Thanks in advance.

    Tuesday, March 2, 2021 9:19 PM


All replies