DistinctValuesEditorAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that the target property should use a "DistinctValues" editor and also defines an automatic lookup script for row fields.
[AttributeUsage(AttributeTargets.All)]
public class DistinctValuesEditorAttribute : LookupEditorBaseAttribute
Public Members
name | description |
---|---|
DistinctValuesEditorAttribute() | Initializes a new instance of the DistinctValuesEditorAttribute class. |
DistinctValuesEditorAttribute(…) | Initializes a new instance of the DistinctValuesEditorAttribute class. |
Expiration { get; set; } | Cache duration in seconds |
Permission { get; set; } | Permission key required to access this lookup script. Use special value "?" for all logged-in users. Use special value "*" for anyone including not logged-in users. |
PropertyName { get; set; } | Property name that this editor will get values from |
RowType { get; set; } | RowType that this editor will get values from |
const Key | Editor type key |
See Also
- class CustomEditorAttribute
- class LookupEditorBaseAttribute
- Source: DistinctValuesEditorAttribute.cs