I have data being fed into two tables from two different sources - a calculation is done comparing respective price fields between the two tables and then information from the tables are output via EF / datatables to the ASP.NET MVC web client.
This will take place every few seconds.
For the sake of performance I'm thinking I could compare the respective tables and output the resulting data to a SQL Server view only where the prices compared positively which then could more speedily be read by the web client.
But how can Entity Framework connect to a SQL Server view rather than table? Or would it be possible to mimic the effect of a view myself in a calculated table?
I'm using code-first rather than db-first, by the way.
Thank you.
Simon