Skip to content

ServiceLookupEditorAttribute.AutoServiceFor method

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.

public static string AutoServiceFor(Type type)
parameter description
type Type to generate a service for.

Return Value

Auto generated service.

See Also