I am creating my first ASP.NET MVC2 application. I am trying to create a Partial Class for data validation as demonstrated in the nerdDinner application, but MetaDataType has a red line with the message : "The type or namespace 'MetadataType' could not be found (are you missing a using directive or an assembly reference?)"
is there a "using" namespace I'm missing? Here is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Linq;
using System.Web.Mvc;
using LanTracerMVC.Models;
namespace LanTracerMVC.Models
{
[MetadataType(typeof(Request_Validation))]
//[Bind(Include = "ReqTypeID, ReqBy, ReqStatusID, NewLocationID")]
public partial class Request
{
}//end partial class
public class Request_Validation
{
}
}