Example #1
0
        public IIdentityDbContext GetDbContext()
        {
            MongoResource resource = Containers
                                     .GetResource <MongoResource>("mongo");

            return(new IdentityDbContext(new MongoOptions
            {
                ConnectionString = resource.ConnectionString,
                DatabaseName = "magic-identity"
            }));
        }