hi..


i have 2 problems

if i create a table relationship between 2 tables and define it as
nested in the "is nested" property schema it does not create any
DataRelations

if i try to define a nested Relation in runtime but with a constructor
it will be ignored.

only using isNested Property of the date Relation will work

RE: problem with nested relations in typed datasets by MatthewHolton

MatthewHolton
Mon Apr 04 17:35:02 CDT 2005

Do you just want to create relationships in you dataset?

You can create relations in the designer, right click on one entity and
choose add relation and complete the dialog.

You can create relations in code with the dataset.relations object.

Eitherway, if your foriegn key is an Autonumber, you will need to create a
handler to monitor changes to the parent table upon update and populate the
child records with the new value.





"Elhanan" wrote:

> hi..
>
>
> i have 2 problems
>
> if i create a table relationship between 2 tables and define it as
> nested in the "is nested" property schema it does not create any
> DataRelations
>
> if i try to define a nested Relation in runtime but with a constructor
> it will be ignored.
>
> only using isNested Property of the date Relation will work
>
>

Re: problem with nested relations in typed datasets by Elhanan

Elhanan
Tue Apr 05 02:14:40 CDT 2005

i did create them in the designer but when i specified nested
attribute, it actually deleted the relation objects within the dataset
class.

Matthew Holton wrote:
> Do you just want to create relationships in you dataset?
>
> You can create relations in the designer, right click on one entity
and
> choose add relation and complete the dialog.
>
> You can create relations in code with the dataset.relations object.
>
> Eitherway, if your foriegn key is an Autonumber, you will need to
create a
> handler to monitor changes to the parent table upon update and
populate the
> child records with the new value.
>
>
>
>
>
> "Elhanan" wrote:
>
> > hi..
> >
> >
> > i have 2 problems
> >
> > if i create a table relationship between 2 tables and define it as
> > nested in the "is nested" property schema it does not create any
> > DataRelations
> >
> > if i try to define a nested Relation in runtime but with a
constructor
> > it will be ignored.
> >
> > only using isNested Property of the date Relation will work
> >
> >