Here is my knowing about ASP.NET SPA:
- have to use Upshot to talk to the server;
- have to use DbDataController to provide Web APIs;
- have to use Entity Framework Code first...
so, many concerns come out:
- have to provide metadata for the upshot to work, this will obviously expose the structure of your database;
- can i use Entity Framework Database First instead of Code First? You may ask why. Because Code First don't provide you the ability to customize your database(index customization, stored procedure...etc.);
- A problem i met: when i add a "TestUpshot.edmx" file(generated from database 'northwind') to the MySpaApp.Models folder(trying to test whether i can use the edmx classes in the MyDbDataController class, and generate proper metadata in the client side), and run the application, there is an exception:"System.ArgumentException: Could not find the conceptual model type for MySpaApp.Models.Categories."...
Need help here, thanks in advance.
Dean
No comments:
Post a Comment