Quantcast
Viewing all articles
Browse latest Browse all 32056

List of tables in combobox in silverlight

Hi all...

Please help...


I need to get a list of all tables name, and columns names (when a table name is selected by the user) on combo boxes.

I got till here -

[OperationContract]
public IList<string> TablesList()
{
 context = new DataContext1();
 
var datamodel = context.Mapping;

foreach(var r in datamodel.GetTables())
{
 //What code should I write here?
}

}
----------

I want a list of tables here.

I am not getting how to get these in a list so that I can populate the combobox.

Please help...

I have referred the link - http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/get-all-the-tables-name-using-linq/#ReadAndPostComment


Thanks

Viewing all articles
Browse latest Browse all 32056

Trending Articles