Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an application where the user inserts a sql statement and provides a connection string to a sql database, I run the statement and get him the result using a SqlDataSource. The problem is the SqlDataSource loads the result set completely into memory and and it takes much time, instead if I could use the LinqDataSource or EntityDataSource the performance will increase greatly.

The question is:
Is there a way to create the EntityFramework model or Linq To Sql programatically depending on the select statement and use either LinqDataSource or EntityDataSource instead.


Thanks in advanced for your suggestions.
Posted
Comments
Herman<T>.Instance 25-Sep-12 17:33pm    
how many databases can be choosen from?
AnasTheLegend 26-Sep-12 2:07am    
as many databases as the user needs.

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