Why using linq or entity-framework? Why not using data from ado.net directly,
for example select some data from table and show it directly in a datagidview?
Example :
con = new SqlConnection(cs.DBConn);
con.Open();
String sql = "SELECT ID,CategoryName from Category";
cmd = new SqlCommand(sql, con);
rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
dataGridViewX1.Rows.Clear();
while (rdr.Read() == true)
{
dataGridViewX1.Rows.Add(rdr[0], rdr[1]);
}
Why i can't use like this way in the real world application?