Add "Image" context to add images for the users
This commit is contained in:
@@ -14,6 +14,8 @@ namespace skydiveLogs_api.Data
|
||||
BsonMapper.Global.Entity<Jump>().DbRef(x => x.Aircraft, "Aircraft");
|
||||
BsonMapper.Global.Entity<Jump>().DbRef(x => x.DropZone, "DropZone");
|
||||
BsonMapper.Global.Entity<Jump>().DbRef(x => x.Gear, "Gear");
|
||||
|
||||
BsonMapper.Global.Entity<Image>().DbRef(x => x.UserId, "User");
|
||||
}
|
||||
|
||||
public ILiteCollection<T> GetCollection<T>()
|
||||
@@ -39,5 +41,7 @@ namespace skydiveLogs_api.Data
|
||||
public ILiteCollection<Jump> CollOfJump => _db.GetCollection<Jump>();
|
||||
|
||||
public ILiteCollection<User> CollOfUser => _db.GetCollection<User>();
|
||||
|
||||
public ILiteCollection<Image> CollOfImage => _db.GetCollection<Image>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user