/// <summary> /// Performs the actual actions of using migrations to setup /// the database and seeding with test data if required. /// </summary> /// <param name="services">Core serviceprovider from dependancy /// injection that is used to instantiate the contexts.</param> /// <returns>Empty task because it is async.</returns> public static async Task Initialize(IServiceProvider services) { MetamaskSqlContext context = services.GetRequiredService <MetamaskSqlContext>(); await context.Database.MigrateAsync(); }
public SqlPageMaskRepository( MetamaskSqlContext context, IMapper mapper) { _context = context; _mapper = mapper; }