Simple question:
How does one retrieve the max length of a entity string field at runtime? I see the value provided to the StringLengthVerifier, but what is the technique to get that value for use in my own code?
/// <summary>Gets or sets the Description. </summary>
[Bindable(true, BindingDirection.TwoWay)]
[Editable(true)]
[Display(Name="Description", AutoGenerateField=true)]
[IbVal.StringLengthVerifier(MaxValue=1000, IsRequired=false, ErrorMessageResourceName="AccountTransactionDetail_Description")]
[DataMember]
public string Description {
get { return PropertyMetadata.Description.GetValue(this); }
set { PropertyMetadata.Description.SetValue(this, value); }
}
Thanks!