Fixed issue with Bookmarks with no tags not being returned

This commit is contained in:
2023-03-04 22:23:22 -06:00
parent ba2bcb931f
commit e240d1fdac
4 changed files with 28 additions and 19 deletions

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YABA.Models.Interfaces;
@ -14,5 +15,7 @@ namespace YABA.Models
[ForeignKey(nameof(User))]
public int UserId { get; set; }
public virtual User User { get; set; }
public virtual ICollection<BookmarkTag> TagBookmarks { get; set; }
}
}