Why annotations doesnt work in interfaces ?
like:
public interface IUser
{
[Required]
string FirstName { get; set; }
}
now if i made a class to implement that
public partial class Customer:IUser
{
public Customer()
{
}
public string FirstName
{
get; set;
}
}
it wouldnt enforce validation unless i mark property in the class too ! so what is the point of annotate it in the interface from the first place ! ! so any idea ?