Implementation to have a favorite DZ by user.

This commit is contained in:
Sébastien André
2021-03-24 18:04:08 +01:00
parent beee601a57
commit 0a6dbf42e4
12 changed files with 255 additions and 194 deletions

View File

@@ -21,6 +21,9 @@ namespace skydiveLogs_api.Infrastructure
BsonMapper.Global.Entity<UserImage>().DbRef(x => x.User, "User");
BsonMapper.Global.Entity<Gear>().DbRef(x => x.User, "User");
BsonMapper.Global.Entity<FavoriteDropZone>().DbRef(x => x.User, "User");
BsonMapper.Global.Entity<FavoriteDropZone>().DbRef(x => x.DropZone, "DropZone");
}
public ILiteCollection<T> GetCollection<T>()
@@ -48,5 +51,7 @@ namespace skydiveLogs_api.Infrastructure
public ILiteCollection<User> CollOfUser => _db.GetCollection<User>();
public ILiteCollection<UserImage> CollOfImage => _db.GetCollection<UserImage>();
public ILiteCollection<FavoriteDropZone> CollOfFavoriteDropZone => _db.GetCollection<FavoriteDropZone>();
}
}