static void Main(string[] args) { List <Customer> customers = CustomerContext.GetALL(); foreach (Customer cst in customers) { } }
private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'panditAutomobileDBDataSet.Employees' table. You can move, or remove it, as needed. List <Customer> customers = CustomerContext.GetALL(); foreach (Customer cst in customers) { string strCst = cst.FirstName + " " + cst.Lastname; this.listView1.Items.Add(strCst); } }