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;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YABA.Common.Interfaces;
@ -21,5 +22,7 @@ namespace YABA.Models
[ForeignKey(nameof(User))]
public int UserId { get; set; }
public virtual User User { get; set; }
public ICollection<BookmarkTag> BookmarkTags { get; set; }
}
}