Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MVC problem, connecting to Database

Featured Replies

So I am kinda stuck here.

I have a test project going on and for some reason I can't get mineself connected to the database file.

 

I treid the tutorials but I can't get mine brains to crack this one down again.

 

In the App_Data folder I got a file named stalaerdenhout.sdf which contains 1 Table with 1 column.

 

Now I am trying to show the price on the browser that is in mine table.

 

Anyone know what I must fill in?

 

Table:

Prices

 

Column:

Paard:

€320,-

 

 

The Model folder named "stalaerdenhout.cs":

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Stal_Aerdenhout.Models
{
   public class stalaerdenhout
   {
   }
}

Now the problem is that I'm getting a respond of that the namespace Stal_Aerdenhout.Models already contains a definition.

 

So how do I progress from here?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.