0
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

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

Hmm, thats because Im using the POCO templates generator and I placed the poco generated classes in a different project... should the Validation Buddy class be placed in the Web project?? does that even make sense?
BindAttribute is defined in System.Web.Mvc namespace.. so you will need to include that..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.