In C#, you can use ADO.NET library to read data from a relational database. Here's an example of how to read a list of values from a database using C#:
main.cs948 chars31 lines
This code opens a connection to the database, executes a SELECT query, reads the results into a list of DataItem objects, and closes the connection. You can modify the query and the DataItem class to fit your specific needs.
gistlibby LogSnag