docs.intersystems.com
MultiValue Quick Start Tutorial
Generating .NET Proxy Classes
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Search:    

Here are the steps for generating the proxy classes.

Use CacheNetWizard.exe to generate .NET proxy classes. The wizard is in <cachesys>\Dev\dotnet\bin. Note that after generating the proxy classes, you must add them to your Visual Studio project. To do this click Project–>Add Existing Item... in Visual Studio.
  1. Launch the wizard by double clicking the icon.
  2. Click Connect. Next, click the name of your Caché instance on the list displayed by the ConnectionList dialog box.
  3. Click OK. Next, click the name of the Caché namespace on the Caché Connection Manager dialog.
  4. Click OK. On the main dialog page, enter the following:
    1. Server – Note that you alread entered this at step 1.
    2. Click Source Files to generate source files for the proxy classes. Or, click Assembly to generate a DLL. Select a language: C# or VB.NET. Click Include Subclasses.
    3. Enter a name, for example, Person.cs or Person.dll and destination for the generated file. If you generate a source file, choose the top level of your project folder as the location. If you generate a DLL, choose the bin\debug or bin\release depending on your project configuration.
    4. Click the name of the Caché class on the Available Classes: list. Click the > button. The name of the selected class appears on the Selected Classes: list.
    5. Finally, Click Generate.
Note:
For more information on generating proxy classes, read Generating Caché Proxy Classes in the Using Caché Proxy Classes section of Using the Caché Managed Provider for .NET.


Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA