Skip to main content

Generating .NET Proxy Classes

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.

    generated description: netwizardstart 20142

  2. Click Connect. Next, click the name of your Caché instance on the list displayed by the ConnectionList dialog box.

    generated description: netwizardconnlist 20142

  3. Click OK. Next, click the name of the Caché namespace on the Caché Connection Manager dialog.

    generated description: netwizardnamespaces 20142

  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. Click Methods with default arguments.

    6. Finally, Click Generate.

    generated description: netwizardgen 20142


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.

FeedbackOpens in a new tab