nacho10f
nacho10f

Reputation: 5876

Problem with validation in asp.net mvc 3

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Entities.EntityExtensions
{
    [MetadataType(typeof(IncomeDeclaration_Validation))]
    public partial class IncomeDeclaration
    {
    }

    [Bind(Exclude="Id")]
    public class IncomeDeclaration_Validation
    {
        [Required]
        [StringLength(100)]
        public string Name;
    }
}

"Im getting a the type or namespace Bind is not defined" error... Im lost.

please help

Upvotes: 0

Views: 164

Answers (1)

Shekhar_Pro
Shekhar_Pro

Reputation: 18420

You haven't included System.Web.Mvc namespace there...

Upvotes: 1

Related Questions