Look please below what is the difference between two type of codes. is there any performance difference or what else?
First Codes
ObjectQuery departmans = staffContext.Departman;
GridView1.DataSource = departmans;
GridView1.DataBind();
Second Codes
var departmans = staffContext.Departman;
GridView1.DataSource = departmans;
GridView1.DataBind();
Thanks