Skip to content

ServiceLookupEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that the target property should use a "ServiceLookup" editor.

[AttributeUsage(AttributeTargets.All)]
public class ServiceLookupEditorAttribute : ServiceLookupEditorBaseAttribute

Public Members

name description
ServiceLookupEditorAttribute(…) Initializes a new instance of the ServiceLookupEditorAttribute class. (2 constructors)
const Key Editor type key
static AutoServiceFor(…) When service is null, this method tries to determine the service by looking at the type this attribute is placed on. This is a combination of module identifier and type name. If the type has a [Module] attribute, it is used, otherwise the module identifier is determined from the namespace, by removing ".Entities", ".Scripts", ".Lookups" common suffixes and the root namespace (e.g. the first part of the namespace before the first dot). Type name is determined from the class type name, with common suffixes like "Row" or "Lookup" removed.

See Also