I just want to customize the StringLength Attribute to get length value from a function. I created this custom validation attribute But I don\'t know why this doesn\'t work.