Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

  Name Description
Public method RegisterContext(DataModelProvider) Registers a data context instance by using a data-model provider
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, ContextConfiguration) Registers a data-context instance by using the specified context configuration and by enabling 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.
Top

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

Show:
© 2015 Microsoft