//this is my BusinessLayer in a form of class (DataAccessLayer)//i have a class called Property and DataAccessLayer called BusinessLayer//and again i have store procedure on a sqlDtatabase called allOfPropartypublic DataTable AllofProperty() { using (SqlConnection sqlConn = new SqlConnection(ConnectionString)) { SqlCommand sqlCmd = new SqlCommand("allOfProparty", sqlConn); sqlCmd.CommandType = CommandType.StoredProcedure; SqlDataAdapter sqlAdapter = new SqlDataAdapter(sqlCmd); DataTable ds = new DataTable(); try { sqlConn.Open(); sqlAdapter.Fill(ds); } catch (SqlException ex) { throw new Exception(ex.Message); } return ds; } }i have a WPF form with a comboBox so i want to load propertyNo to comboBoxplease help 解决方案 这篇关于加载到组合框(WPF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 18:26
查看更多