This documentation is archived and is not being maintained.

MetaModel.RegisterContext Method

Registers the data context.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method RegisterContext(Func<Object>) Registers the data context that is specified by a context factory.
Public method RegisterContext(Type) Registers a data-context instance.
Public method RegisterContext(DataModelProvider) Registers a data context instance by using a data-model provider
Public method RegisterContext(Func<Object>, ContextConfiguration) Registers a data-context instance by using the specified context configuration and by enabling a custom constructor.
Public method RegisterContext(Type, ContextConfiguration) Registers a data-context instance by using the specified context configuration.
Public method RegisterContext(DataModelProvider, ContextConfiguration) Registers a data-context instance by using the specified context configuration and by enabling a data-model provider.
Top

You can define data-context initialization information by using the properties of the ContextConfiguration class.

Show: