Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Data / Migrations / DevHiveContextModelSnapshot.cs
diff options
context:
space:
mode:
Commit81b3fc43a900857443c3c763f52e0a54719c2fae (patch)
Author
 transtrike <transtrike@gmail.com>
2021-02-03 02:59:21 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-02-03 02:59:21 +0200
Files1f79f61296cc91002233a6de533698172f2e5fd7 /src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
DevHive-81b3fc43a900857443c3c763f52e0a54719c2fae.tar
DevHive-81b3fc43a900857443c3c763f52e0a54719c2fae.tar.gz
DevHive-81b3fc43a900857443c3c763f52e0a54719c2fae.zip
Parentf99d14ff45ec4e03ce261f7f5a8cccf876a94307 (diff)
User-Friends Relation Fixed
1 files changed, 7 insertions, 5 deletions
-rw-r--r--src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs12
diff --git a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
index 435adb4..96cabad 100644
--- a/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
+++ b/src/DevHive.Data/Migrations/DevHiveContextModelSnapshot.cs
@@ -233,7 +233,7 @@ namespace DevHive.Data.Migrations
b.ToTable("RatedPosts");
});
- modelBuilder.Entity("DevHive.Data.RelationModels.UserFriends", b =>
+ modelBuilder.Entity("DevHive.Data.RelationModels.UserFriend", b =>
{
b.Property<Guid>("UserId")
.HasColumnType("uuid");
@@ -456,16 +456,16 @@ namespace DevHive.Data.Migrations
b.Navigation("User");
});
- modelBuilder.Entity("DevHive.Data.RelationModels.UserFriends", b =>
+ modelBuilder.Entity("DevHive.Data.RelationModels.UserFriend", b =>
{
b.HasOne("DevHive.Data.Models.User", "Friend")
- .WithMany()
+ .WithMany("FriendsOf")
.HasForeignKey("FriendId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("DevHive.Data.Models.User", "User")
- .WithMany("Friends")
+ .WithMany("MyFriends")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
@@ -589,7 +589,9 @@ namespace DevHive.Data.Migrations
{
b.Navigation("Comments");
- b.Navigation("Friends");
+ b.Navigation("FriendsOf");
+
+ b.Navigation("MyFriends");
b.Navigation("Posts");
});