I am really confused. I followed this tutorial:
I know how to add but now i don't know how to add method , which get data from 2 table not from a table. Because the result i want have properties from 2 tables. A for example:
Customer:customerID,customerName
Order:OrderID,CustomerID,OrderDate
I want result:
CustomerID,CustomerName,Orderdate.
But i am confused because the class for customer and order are different. I don't know which type of result i should return so that i can binding into my gridview. If it's Customer type, OrderDate don't have. and same for Order. Someone please give me tip. Thank in advance.