Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 5 Jan 2006 03:22:04 -0800,    group: microsoft.public.dotnet.datatools        back       


working with relationships   
Hi,

I am working on an SQL Server client for .NET and I have created a simple 
recordlist class that accepts a table or row-returning sql command on 
construction and provides a list view of the resultant query.

It would be good if i could create a relationship-aware version of the 
recordlist class, that could determine if a particular field forms part of a 
relationship and if so perform the required lookups.

I've looked over the dataadapter and dataset classes and they appear to work 
the other way around, i.e you impose a set of relationships upon your queries 
or define them using data shaping.

I understand that the relationships are stored in the dtproperties system 
table, so i guess it must be possible to create a stored proc or function to 
return the relationship properties of any database column. But i dont want to 
implement this myself if the sqlclient consumer classes can do it.

If anyone can offer advice, i'd be most greatful as im a little unsure of 
how best to proceed and I dont want to waste time reinventing wheels!

regards and happy new year!
date: Thu, 5 Jan 2006 03:22:04 -0800   author:   papalazarou

RE: working with relationships   
Hi papalazarou:

I don't have VS with me here, but as I can remember, you can look for the 
ParentRows or ChildRows in the corresponding DataRow.

Hope this helps,
-- 

Rafael


"papalazarou" wrote:

> Hi,
> 
> I am working on an SQL Server client for .NET and I have created a simple 
> recordlist class that accepts a table or row-returning sql command on 
> construction and provides a list view of the resultant query.
> 
> It would be good if i could create a relationship-aware version of the 
> recordlist class, that could determine if a particular field forms part of a 
> relationship and if so perform the required lookups.
> 
> I've looked over the dataadapter and dataset classes and they appear to work 
> the other way around, i.e you impose a set of relationships upon your queries 
> or define them using data shaping.
> 
> I understand that the relationships are stored in the dtproperties system 
> table, so i guess it must be possible to create a stored proc or function to 
> return the relationship properties of any database column. But i dont want to 
> implement this myself if the sqlclient consumer classes can do it.
> 
> If anyone can offer advice, i'd be most greatful as im a little unsure of 
> how best to proceed and I dont want to waste time reinventing wheels!
> 
> regards and happy new year!
date: Wed, 25 Jan 2006 06:02:06 -0800   author:   Rafael

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us