I need to get user-specific work tasks from a database.
The filter for all users is different, so you need to make all orders sent to the UK, all in 5 other countries, everyone does all the high-value things, everyone makes an order containing> 10 items, etc.
So, what I came up with this idea (shoot it if you have the best!)
I create a view for each user, and all views return the same data, but the filter is different.
In ado.net, I would do something like this:
string sql = "select * from vwWorkOrders" + userName;
[rest of the ado.net here]
but now I am using ef4 and I was wondering what is equivalent to this type of code.
source
share