I have a Dbcontext which say for files,
private FileDB db = new FileDB();
now i have stored files in my DB, when i using in controller(MVC) i just want to have the db context with set of files related to the user not all files, how could i extent the Dbcontext to have that feature.
I dont want to find files belong to that user, inside each action results like
File file = db.Files.Find(id);
instead i need to have "db" with only files related to that user.