command = "INSERT INTO clients VALUES(" + NameTB.Text +")";
objCtx.SaveChanges();
List<Client> clients = new List<Client>();
clients = objCtx.ExecuteStoreQuery<Client>("Select * from clients").ToList();
string x = "";
for (int i = 0; i < clients.Count; i++)
x += clients[i].Name.ToString();//exception here
MessageBox.Show(x);
I just start to work with EF and have no idea how to fix this; I took the code from here