aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/User.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-20 18:07:58 +0200
committertranstrike <transtrike@gmail.com>2021-01-20 18:07:58 +0200
commit8179af787a7bf375753a178b89111a91d84a8bb8 (patch)
treeeb2dbeb52e0875ddc06d5e6ca1bd97ef8d941d4e /src/DevHive.Data/Models/User.cs
parentaa4f7bdd9a2df09fc47e82c2b85fb7647203ba8d (diff)
downloadDevHive-8179af787a7bf375753a178b89111a91d84a8bb8.tar
DevHive-8179af787a7bf375753a178b89111a91d84a8bb8.tar.gz
DevHive-8179af787a7bf375753a178b89111a91d84a8bb8.zip
Changed List to HashSet for "no duplicates" scenario
Diffstat (limited to 'src/DevHive.Data/Models/User.cs')
-rw-r--r--src/DevHive.Data/Models/User.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DevHive.Data/Models/User.cs b/src/DevHive.Data/Models/User.cs
index cf779f5..2ac7adf 100644
--- a/src/DevHive.Data/Models/User.cs
+++ b/src/DevHive.Data/Models/User.cs
@@ -19,15 +19,15 @@ namespace DevHive.Data.Models
/// Languages that the user uses or is familiar with
/// </summary>
// [Unique]
- public IList<Language> Languages { get; set; }
+ public HashSet<Language> Languages { get; set; }
/// <summary>
/// Technologies that the user uses or is familiar with
/// </summary>
- public IList<Technology> Technologies { get; set; } = new List<Technology>();
+ public HashSet<Technology> Technologies { get; set; } = new HashSet<Technology>();
- public IList<Role> Roles { get; set; } = new List<Role>();
+ public HashSet<Role> Roles { get; set; } = new HashSet<Role>();
- public IList<User> Friends { get; set; } = new List<User>();
+ public HashSet<User> Friends { get; set; } = new HashSet<User>();
}
}