473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

typed datasets and duplicated relations

I'm struggling to create a typed data set (with xsd.exe) with 4 tables and 3
layers

orders -> Items
Items->ItemAtts1
Items->ItemAtts2

if you follow me. it's kind of working, but I don't seem to be getting the
bottom relationship (Items->ItemAtts2). When I look in the generated code I
find that each (foreign) key and each relationship *appears* to be
duplicated.

Basically the information is the same but the names are different
Orders_Items and ItemsInOrder and the column names are like OrderID and
OrderID_0.

I found that I was getting duplicate definitions (in the class definitions)
when I used the typedChildren annotation in the keyrefs and I wonder if this
relates.

Any ideas?

Iain
Nov 12 '05 #1
1 1133
Well, I've removed *all* the annotations and that seems to have made things
work. I still seem to have a choice of 2 relations (GetOrder_Items or
GetItemsInOrder) but I no longer have duplicate definitions in the generated
CS.

My key and key refs were made by VS in the XSD editor.

Why are these duplications happening and why do annotations screw things up?
Iain
"Iain" <id********@dircon.co.uk> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
I'm struggling to create a typed data set (with xsd.exe) with 4 tables and 3 layers

orders -> Items
Items->ItemAtts1
Items->ItemAtts2

if you follow me. it's kind of working, but I don't seem to be getting the bottom relationship (Items->ItemAtts2). When I look in the generated code I find that each (foreign) key and each relationship *appears* to be
duplicated.

Basically the information is the same but the names are different
Orders_Items and ItemsInOrder and the column names are like OrderID and
OrderID_0.

I found that I was getting duplicate definitions (in the class definitions) when I used the typedChildren annotation in the keyrefs and I wonder if this relates.

Any ideas?

Iain

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

45
by: cody | last post by:
I've seen an Introduction on ADO.NET with its Datasets on .NET TV and Iam now wondering how it is realized/used in real world applications. I don't believe that one would create a dataset and add...
3
by: Duncan Welch | last post by:
I have a strongly typed dataset that returns two tables - "items" and "itemdetails". In the strongly-typed dataset designer, I've created a link (relationship) between the two tables based on a...
4
by: Ronald S. Cook | last post by:
I've always used untyped datasets. In a Microsoft course, it walks through creating typed datasets and harps on the benefits. It has you drag all these things around ..wizard, wizard, wizard......
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
3
by: =?Utf-8?B?SXbDoW4gUMOpcmV6?= | last post by:
Hi there, I have a question that has been raised on how an application should handle the data that is travelling through a three-layered application. Our data is going to be handled by Dataset...
4
by: Rachana | last post by:
Hi, I have understood Data Sets but what is meant by typed/untyped/ strongly typed datasets. Can any one explain me or suggest any site/ article, to get these concepts (and their ...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.