aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-02-03 12:30:18 +0200
committertranstrike <transtrike@gmail.com>2021-02-03 12:30:18 +0200
commit8174d2b35c1d3fa90df8b9cb4a75bb3381ea5e39 (patch)
tree8d7be6369030ab512d3e475518de52d3a956926a /src/DevHive.Data
parent81b3fc43a900857443c3c763f52e0a54719c2fae (diff)
downloadDevHive-8174d2b35c1d3fa90df8b9cb4a75bb3381ea5e39.tar
DevHive-8174d2b35c1d3fa90df8b9cb4a75bb3381ea5e39.tar.gz
DevHive-8174d2b35c1d3fa90df8b9cb4a75bb3381ea5e39.zip
Added Include in the Queries
Diffstat (limited to 'src/DevHive.Data')
-rw-r--r--src/DevHive.Data/Repositories/UserRepository.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DevHive.Data/Repositories/UserRepository.cs b/src/DevHive.Data/Repositories/UserRepository.cs
index b46198c..58f8188 100644
--- a/src/DevHive.Data/Repositories/UserRepository.cs
+++ b/src/DevHive.Data/Repositories/UserRepository.cs
@@ -38,6 +38,8 @@ namespace DevHive.Data.Repositories
.Include(x => x.Languages)
.Include(x => x.Technologies)
.Include(x => x.Posts)
+ .Include(x => x.MyFriends)
+ .Include(x => x.FriendsOf)
.FirstOrDefaultAsync(x => x.Id == id);
}
@@ -48,6 +50,8 @@ namespace DevHive.Data.Repositories
.Include(x => x.Languages)
.Include(x => x.Technologies)
.Include(x => x.Posts)
+ .Include(x => x.MyFriends)
+ .Include(x => x.FriendsOf)
.FirstOrDefaultAsync(x => x.UserName == username);
}
#endregion