Exemple #1
0
        public async Task InitializeAsync()
        {
            await _sqlServer.InitializeAsync();

            var connectionString = _sqlServer.CreateConnectionString(DbName);
            var options          = new DbContextOptionsBuilder <DatabaseContext>()
                                   .UseSqlServer(connectionString)
                                   .Options;

            Context = new DatabaseContext(options);
            Context.Database.Migrate();
        }