Use the annotation xmlns

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconusingannotationswithtypeddataset.asp



Gary Davidson





From: "Zecharya, Bar (FIRM)" <[EMAIL PROTECTED]>
Reply-To: "Moderated discussion of advanced .NET topics."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Typed dataset: provide user-friendly column name
Date: Fri, 26 Mar 2004 15:13:24 +0100

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

_________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp

===================================
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