Possible Duplicate:
Razor-based view doesn't see referenced assemblies
I am a Newbie in ASP.net I am trying to connect to a database and I keep getting this error
**Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Database' does not exist in the current context
Source Error:
Line 1: @{ Line 2: var db = Database.Open("demo"); ' Line 3:
Line 4:Source File: c:\Users\Ayoya\Documents\My Web Sites\demo\Page.cshtml
Line: 2 **
Can anyone tell me whats wrong? Thank you