ms = new MSEntities(); var Res = from St in ms.Staffs select St; ObservableCollection<Staff> staffs = new ObservableCollection<Staff>(Res); // staff is my database table staffName.ItemsSource = staffs; // my combo box source staffName.DisplayMemberPath = "StaffName"; myimage.Source = ???
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)