Skip to content

IEntityLinkProvider interface

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Turns references to records into links that open them, for the types of records it knows, e.g. one that opens the order of an order line on its lines tab. Any number of them can be registered; IEntityLinkResolver asks them in their Order, and each fills the links that are still missing. The DefaultEntityLinkProvider, which opens the dialog of the row type, is asked last.

public interface IEntityLinkProvider

Members

name description
Order { get; } Gets the order the provider is asked in, lower first. The default provider has MaxValue.
Resolve(…) Fills the links of the references that it knows, in the same index of links, leaving the others as they are. A link that is already filled by a provider before it should be left as it is. It should only link a record that the user of the context can read.

See Also