Consultor Eletrônico



Kbase P82051: Datarelation in a dataset won't be generated properly for .Net (dotNet) using the .Net Proxygen tool
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/09/2004
Status: Verified

FACT(s) (Environment):

OpenEdge 10.0A

SYMPTOM(s):

Datarelation in a dataset won't be generated properly for .Net (dotNet) using the .Net Proxygen tool

Opening the XSD file created by the Proxygen in Visual Studio shows no relationship between tables.

The XSD file contains "<xs:annotation>" block

The XSD file should contain "<xs:keyref>" block

CAUSE:

Bug# 20040528-005

CAUSE:

In the <DataSet>Schema.cs which produces the .xsd containing the strongly typed dataset, the DataRelation constructor which said not to create the foreignkeyconstraint is used.

Now in OpenEdge 10.0B, the following constructor is used:
drel = new DataRelation(RelationName, parentCols, childCols);
instead of:
drel = new DataRelation(RelationName, parentCols, childCols, false);


FIX:

Upgrade to OpenEdge 10.0B