How to: Define a method instance
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
You must define at least one method instance for every method in your model.
Add a method instance by using the BDC Method Details window. When you add the method instance, Visual Studio adds a <MethodInstance>
element to the XML of the model file in your project. For more information about the attributes of a <MethodInstance>
element, see MethodInstance.
To define a method instance
In the BDC Method Details window, expand the node of a method, and then expand the Instances node.
In the Add a Method Instance list, choose Create Finder Instance.
A new method instance appears beneath the Instances node.
On the menu bar, choose View > Properties Window.
In the Properties window, set the properties of the method instance. For more information about each property, see MethodInstance.