/// <summary> /// Ensure collections created /// </summary> private static void CreateCollections(IMainDbContext dbContext) { var collections = dbContext.Collections(); if (!collections.Has <Board>()) { dbContext.CreateCollection <Board>(); } if (!collections.Has <Card>()) { dbContext.CreateCollection <Card>(); } if (!collections.Has <Task>()) { dbContext.CreateCollection <Task>(); } if (!collections.Has <Organization>()) { dbContext.CreateCollection <Organization>(); } if (!collections.Has <Project>()) { dbContext.CreateCollection <Project>(); } if (!collections.Has <User>()) { dbContext.CreateCollection <User>(); } if (!collections.Has <ApplicationRole>(name: "Roles")) { dbContext.CreateCollection <ApplicationRole>(name: "Roles"); } }