diff options
| author | transtrike <transtrike@gmail.com> | 2021-04-07 19:56:55 +0300 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-04-07 19:56:55 +0300 |
| commit | 5595bf9abe7b3d495f36ef39cfa5236dbde86039 (patch) | |
| tree | e0663d2ece9f8124ff58de7a565944092f67003a /src/Data | |
| parent | 43336a1e977f33ad49ad8b4851ca449936f93ce6 (diff) | |
| download | DevHive-5595bf9abe7b3d495f36ef39cfa5236dbde86039.tar DevHive-5595bf9abe7b3d495f36ef39cfa5236dbde86039.tar.gz DevHive-5595bf9abe7b3d495f36ef39cfa5236dbde86039.zip | |
Added adding & removing friends funtionality & endpoints for them
Diffstat (limited to 'src/Data')
| -rw-r--r-- | src/Data/DevHive.Data.Models/Friendship.cs | 17 | ||||
| -rw-r--r-- | src/Data/DevHive.Data/ConnectionString.json | 2 | ||||
| -rw-r--r-- | src/Data/DevHive.Data/Repositories/FriendshipRepository.cs | 20 |
3 files changed, 1 insertions, 38 deletions
diff --git a/src/Data/DevHive.Data.Models/Friendship.cs b/src/Data/DevHive.Data.Models/Friendship.cs deleted file mode 100644 index 91ac9c7..0000000 --- a/src/Data/DevHive.Data.Models/Friendship.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.ComponentModel.DataAnnotations.Schema; - -namespace DevHive.Data.Models -{ - //class for handling the many to many relationship betwen users and users for friends - public class Friendship - { - [NotMapped] - public Guid BaseUserId { get; set; } - [NotMapped] - public Guid FriendUserId { get; set; } - - public User BaseUser { get; set; } - public User FriendUser { get; set; } - } -} diff --git a/src/Data/DevHive.Data/ConnectionString.json b/src/Data/DevHive.Data/ConnectionString.json index c48d214..ec065d1 100644 --- a/src/Data/DevHive.Data/ConnectionString.json +++ b/src/Data/DevHive.Data/ConnectionString.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "DEV": "Server=localhost;Port=5432;Database=DevHive_API;User Id=postgres;Password=password;" + "DEV": "Server=localhost;Port=5432;Database=DevHive_API;User Id=postgres;Password=;" } } diff --git a/src/Data/DevHive.Data/Repositories/FriendshipRepository.cs b/src/Data/DevHive.Data/Repositories/FriendshipRepository.cs deleted file mode 100644 index 94fdec3..0000000 --- a/src/Data/DevHive.Data/Repositories/FriendshipRepository.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using DevHive.Data.Models; - -namespace DevHive.Data.Repositories -{ - public class FriendshipRepository : BaseRepository<Friendship> - { - private readonly DevHiveContext _context; - - public FriendshipRepository(DevHiveContext context) - : base(context) - { - this._context = context; - } - } -} |
