Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > FindBy<> method in Typed DataSet.

Reply
Thread Tools

FindBy<> method in Typed DataSet.

 
 
Henry
Guest
Posts: n/a
 
      12-19-2003
Dear Group:

A question regarding the behavior of the Visual Studio.NET.

When I drag the "Customers" table in "Northwind" database on Server Explorer
to my web page, then select the DataAdapter object, and then right-click to
"Generate DataSet.." The C# class source file for this typed DataSet would
have the following method

public CustomersRow FindByCustomerID(string CustomerID) {
return ((CustomersRow)(this.Rows.Find(new object[] {
CustomerID})));
}

in the CustomerDataTable class. It's quite convenient to use that to do key
value search.

But if I have an XML file, and use XML Schema Designer to create the schema
for that XML file, select the primary key on the schema, and save the files,
the generated C# class source file would *not* have that "FindBy<key name>"
method in it.

Can someone advice how does VS.NET determines when to create that "FindBy"
method based on the schema attributes?

TIA.

from Henry


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mix statically typed with dynamically typed Yingjie Lan Python 4 01-29-2010 08:50 AM
method def in method vs method def in block Kyung won Cheon Ruby 0 11-21-2008 08:48 AM
"could not find a non-generic method" when creating a very simple example with typed datasets dave ASP .Net 2 03-16-2007 09:50 PM
How can I add a row from a typed datatable to another instance of that typed datatable? Ersin Gençtürk ASP .Net 1 10-06-2004 01:11 PM
Typed Dataset Parameter In A Web Service Method Peter R Lynch ASP .Net Web Services 0 01-18-2004 05:46 AM



Advertisments