Hi had a question about this Line of code
i made this and it says in the result that we have the drivervechils info but in my datagridview it doesnt show the table
i wanted to know how i can fix it
These are the classes i just want to bring out the driver and the driver vehicules info to show onto my Grid Viewenter image description here
these are the classes enter image description here
wanted to show the grid vew contents but just the driver were showing up and not the other one
and my result var had all of the class infos
SnapContext context = new SnapContext(); var result = context.Drivers.Include(x=>x.DriverVehicules).ToList(); dataGridView1.DataSource = null; dataGridView1.DataSource = result;
Mani Ahmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.