Skip to content

DistinctValuesEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.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; } The property name that this editor will get values from.
RowType { get; set; } The row type that this editor will get values from.
const Key Editor type key

See Also