Database Reference
In-Depth Information
}
6. To set the OrdinalIndexer form as the start-up form, modify the Program.cs
statement:
Application.Run(new DataLooper());
to appear as:
Application.Run(new OrdinalIndexer());
7. Build the project, and run it by pressing Ctrl+F5. You should see the results in
Figure 14-4.
Figure 14-4. Displaying multiple columns using OrdinalIndexer
How It Works
You query the Person.Contact table for the columns FirstName and LastName, where contact names
begin with the letter M .
// Query
string sql = @" select FirstName,LastName
from Person.Contact
where FirstName like 'M%'";
 
Search WWH ::




Custom Search