The name 'Database' does not exist in the current context?
I am getting this error when I try to launch my website using WebMatrix. I have a .cs file which makes a call var db = Database.Open("dbase"); . I have a database in my project called "dbase". I have no web.config file and no imports for using WebMatrix packages since I am launching the site using WebMatrix, so I don't believe I should need them. Do I need to wrap the code in Razor tags, like @{var db = Database.Open("dbase"); } ? This causes an error for me too. What could be causing this? Does anyone have any solutions for this? You need a reference to the WebMatrix.Data.dll assembly (which