I am using the view ("UsersActive") against my table ("Users"). There is only one filter in the view, it checks whether DateTime Users.DeletedOn is NULL; it basically contains all users that are not deleted.
If I now run Linq queries against a view instead of a table, will they still use table indexes or do I need to create special indexes for the view? In my opinion, a view is nothing more than a predefined query, and should work just as if I were directly addressing it:
SELECT * FROM Users WHERE DeletedON = NULL
Is my assumption that base table indexes will still be used correctly?
source
share