This is a migrated thread and some comments may be shown as answers.

[Solved] How to write Join Statements between 2 tables using ADO.NET and MVC Grid

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Moiz
Top achievements
Rank 1
Moiz asked on 12 Jul 2011, 10:43 AM
Hi there..
I have developed a small layered MVC application. The layers are as follows:
1. Presentation Layer (MVC project)
2. Data Layer (Repository Pattern)
3. Business Logic Layer (Validator Layer)
4. Service Layer (Controllers of MVC connect to the data layer through this layer).

Uptil now all the work that i have done is pretty simple. Creating repositories for each table and then calling them through the service layer. but now i want to get data from two tables. into one grid. I have two tables and I have create a foreign key relationship between them. By refrencing the Primary key of the table i want to get other info. Can anyone tell me how is it possible? Also i will be able to provide code if this isnt understood.
Thanks

1 Answer, 1 is accepted

Sort by
0
Moiz
Top achievements
Rank 1
answered on 13 Jul 2011, 08:21 AM
ok i have achieved the desired result using sql views. if anyone wants to know i can provide them with the code files...
Tags
Grid
Asked by
Moiz
Top achievements
Rank 1
Answers by
Moiz
Top achievements
Rank 1
Share this question
or