public partial class User : UserBase { [Filter()] public string FriendlyName { get; set; } }
{ [Filter()]
}
So I want to get 'FriendlyName' and stick it into my FilterProperty:
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)] public class FilterAttribute : Attribute { private bool isFilterable; private string filterName; public FilterAttribute() { isFilterable = true; filterName = ??? }