Server Error in '/' Application.

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 'db' does not exist in the current context

Source Error:


Line 40:             {
Line 41: 
Line 42:                 _CmsPage = db.CmsPages.Where(p => p.Culture == "fa-IR" && p.Url == "HomePage").FirstOrDefault() ?? new DALModel.CmsPage();
Line 43: 
Line 44:             }

Source File: c:\inetpub\vhosts\wetlandsproject.ir\httpdocs\en\main.master.cs    Line: 42






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3650.0