User Tools

Site Tools


support_for_creating_a_typed_dataset.htm
Navigation:  Clarion.Net (Clarion#) > Clarion.NET FAQs/Troubleshooting > Support for Creating a Typed Dataset >====== Support for Creating a Typed Dataset ====== Previous pageReturn to chapter overviewNext page

From the IDE Solution Explorer, you have the option to add a New Dataset to any existing project.

To enable the creation of a typed dataset in the IDE, the following steps must be followed:

1.On your development machine, locate the WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG folder.

2.Locate and open the machine.config file into the text editor, and insert the text section below:

<;system.codedom>

<;compilers>

<;compiler language=“Clarion.Net” extension=“.cln” type=“ClarionCompiler.CodeProvider, SoftVelocity.Clarion.ClarionCodeProvider, Version=2.0, Culture=neutral, PublicKeyToken=4aca31c24e330653” compilerOptions=“” />

<;compiler language=“c#;cs;csharp” extension=“.cs” type=“Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” />

<;compiler language=“vb;vbs;visualbasic;vbscript;vbnet” extension=“.vb” type=“Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” />

<;compiler language=“js;jscript;javascript” extension=“.js” type=“Microsoft.JScript.JScriptCodeProvider, Microsoft.JScript, Version=8.0.1100.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />

<;compiler language=“vj#;vjs;vjsharp” extension=“.jsl;.java” type=“Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />

<;compiler language=“c++;mc;cpp” extension=“.h” type=“Microsoft.VisualC.CppCodeProvider, CppCodeProvider, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />

<;/compilers>

<;/system.codedom>

<;/configuration> !! already exists at end of existing file ' do not add!

Note:

Insert the above text at the end of the machine.config file within the existing <;/configuration> tag. Don't a add new <;/configuration> tag.

After doing this, the Add→New Dataset project option will invoke a wizard that allows you to define a datasource.

On completion of the wizard, a typed Dataset is created and added to the active Project.

In addition, if you select the Add→Existing Item project option, and then choose a TopSpeed (TPS) file, a Typed Dataset is also created and added to the active Project.

In summary, there are two files added to the project:

1. The XML-schema of the typed DataSet

2. A file with a namespace containing a typed DataSet.

support_for_creating_a_typed_dataset.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1