vijgen
asked on
ASP.net MVC 4 Razor and dynamic queries
Hello,
I outsourced a development project where the old developer left. The current project has been developed using ASP.net MVC 4 Razor.
One of the requirements is that the program is able to write a select query using relations scheme that is stored in a table (the relations are not on the schema because this is not necessary, there are only select statements used in this project). The table basically contains the following information: the first column contains the first table and column (table1.column1) and the second column contains the related table and column (table2.column2) the last column contains the relation type for example:
|PrimaryKeyTableColumn|For eignKeyTab leColumn|
|Sales.Customer |Customer.No |
The new developer states this is not possible using ASP.net MVC 4 and Razor because it's bound to the Entity Framework. Is this true?
He wants to switch to ASP.net webforms, this means that all old code is pretty much useless.
Thanks in advance
I outsourced a development project where the old developer left. The current project has been developed using ASP.net MVC 4 Razor.
One of the requirements is that the program is able to write a select query using relations scheme that is stored in a table (the relations are not on the schema because this is not necessary, there are only select statements used in this project). The table basically contains the following information: the first column contains the first table and column (table1.column1) and the second column contains the related table and column (table2.column2) the last column contains the relation type for example:
|PrimaryKeyTableColumn|For
|Sales.Customer |Customer.No |
The new developer states this is not possible using ASP.net MVC 4 and Razor because it's bound to the Entity Framework. Is this true?
He wants to switch to ASP.net webforms, this means that all old code is pretty much useless.
Thanks in advance
What do you want exactly? Do you want to construct the queries at run time when particular view called? And what is your table structure? Do you have separate database in which only column and relational information is stored of other database? You question is quite confusing to me. But that's fine for me. Clear your question and we will move ahead. One thing is that nothing is impossible. There will be some other ways to achieve your goal. Thanks.
ASKER
Based on the data supplied (which can be different every time) the user on the frontend of the webapp should have the possibility to query his data (which can be stored in different tables). The join must be made dynamically based on the selection the user makes (the relations between this tables are defined in the table I've mentioned in the first question)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.