Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a stored procedure Get_All_Customers, it selects 4 columns from the Customers table. The result is displayed in a DataGridView.

There are 2 cases when calling the stored procedure:

When the return type be auto-generated:
the DataGridView will contain the 4 columns that the stored procedure selects

When the return type be specific (Customer):
The DataGridView will contain 5 columns (not 4 that the stored procedure selects)

the linq code in the tow cases is :

dgvCustomers.DataSource = db.GET_ALL_CUSTOMERS();


But the result will changes by return type change
Posted
Updated 17-Jan-15 0:39am
v2
Comments
DamithSL 17-Jan-15 6:33am    
can you update the question with the linq code for two cases and stored procedure select statement?
John C Rayan 27-Jan-15 15:30pm    
what are the properties of your Customer object?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900