MVC 4 Single Page Application - Where's the data go?

300 views Asked by At

I just created an ASP.NET MVC 4 single page application using the template.

Out of the box it appears to be able to persist and retrieve data. But I can't work out where this data is going. I haven't set up a database or anything.

    public void InsertSubscription(Models.Subscription entity) {
        InsertEntity(entity);
    }

After I call this function. Where can I go to view the table with the data in it?

2

There are 2 answers

0
marcind On

Look in your application's web.config file for a database connection string. That should point to where your data is located.

0
Moshe Katz On

By default, the SPA template creates a SQL Server Express database stored in your application's App_Data folder.

This article provides information about the default setup.