It depends on how you planned on accessing this metadata for the column
but you can also try one of the two schema additions:

Add the msdata:Caption="The customer's unique identification number" which
sets the caption propety on the datacolumn.

Add one or many msprop:MyDescription="The customer's unique identification
number" to add items to the ExtendedProperties (PropertiesCollection that
inherits from Hashtable) of the datacolumn.

Chad

On Fri, 26 Mar 2004 15:13:24 +0100, Zecharya, Bar (FIRM)
<[EMAIL PROTECTED]> wrote:

>Does anyone have an idea how I could add extra column information, like a
>second "name" property, to a typed dataset?
>
>I'm working on a mechanism to log changes made to a dataset, by looping
>through each table, calling GetChanges(), and then looping through each
>column and logging when a change has been made to that column's data.
>However, I would like to provide a more user-friendly name for the columns
>(a string would suffice).
>
>Given a column description like:
><xs:element name="id_customer" type="xs:int" />
>
>I would like to change it to (for example)
><xs:element name="id_customer" friendlyname="The customer's unique
>identification number" type="xs:int" />
>
>But I get a compiler error: "The 'friendlyname' attribute is not supported
>in this context."
>
>Any ideas (both localizable and non-localizable welcome)?
>
>Bar
>
>
>Bar Zecharya
>Marine Resources Division (FIRM)
>Fishery Department
>Food and Agriculture Organization of the United Nations
>Viale delle Terme di Caracalla 00100 Rome Italy
>
>===================================
>This list is hosted by DevelopMentorŪ  http://www.develop.com
>Some .NET courses you may be interested in:
>
>NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
>http://www.develop.com/courses/gaspdotnetls
>
>View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to