Provides access to the BusinessOperations Model's root node.

Namespace: Xafari.BC.BusinessOperations
Assembly: Xafari.BC.BusinessOperations (in Xafari.BC.BusinessOperations.dll)

Syntax

C#

public IModelBusinessOperations Model {get;}

Implements

IBusinessOperationManager.Model
 

 

Remarks

By default actual information about Business Operations reads from Model using Instance.

To override default behavior you may implement custom CustomizeProjectInstance event handler in platform independent module to make Business Operations read actual information from Application Model.

 

 
 public override void Setup(XafApplication application)
 {
    SafeThreadProjectLoader.CustomizeProjectInstance += Project_CustomizeProjectInstance;
    ...
 }
 
 private void Project_CustomizeProjectInstance(object sender, EventArgs e)
 {
    var project = Project.Instance;
    project.ApplicationModel = (ModelApplicationBase)project.XafApplication.Model;
    project.XafApplication.ModelChanged += application_ModelChanged;
 }
 
 private void application_ModelChanged(object sender, EventArgs e)
 {
    Project.Instance.ApplicationModel = (ModelApplicationBase)Project.Instance.XafApplication.Model;
 }
 

See Also