Quantcast
Viewing all articles
Browse latest Browse all 764

Probelm regarding Foreign key code in Business Classes

I have created a Silverlight application using CSLA,without MVVM.

Database Name;EmployeeDb

Tables: 

1] Country {Id,CountryName}

2] State{Id,StateName,CountryId}

I have developed StateEdit.cs,StateGetter.cs,StateExistCommand.cs, StateInfo.cs, StateList.cs. 

My StateList.xaml contains a state datagrid with columns as Id,StateName,CountryName.

I want to display the CountryName of the CountryId from State table on xaml.

To do this,What is the code required in StateInfo.cs & StateList.cs?

Now Datagrid displays CountryId. But how to display its respective CountryName?


Viewing all articles
Browse latest Browse all 764

Trending Articles