How to make Entity and/or Identity Framework hide the PasswordHash column?
Hi all! So i have in my projects this query
var thread = context.threads.Include(t => t.posts).ThenInclude(p => p.ApplicationUser).Include(t => t.ApplicationUser).Include(t => t.movie).Where(t => t.Id == id);
The only problem is this query returns the whole ApplicationUser object so that includes his hashed Password like this:
https://i.ibb.co/jJp5mdT/253235253.jpg
(Dont even know why i hide the data, its just a dummy user).
how could i hide it to not return it? I tried to use Select in the query but that allows you only to select columns from the "main" table of the query (in this example its threads).
0 comments:
Post a Comment