Startup.cs 474 B

1234567891011121314151617
  1. using Furion;
  2. using Furion.DatabaseAccessor;
  3. using Microsoft.Extensions.DependencyInjection;
  4. namespace YBEE.EQM.EntityFramework.Core
  5. {
  6. public class Startup : AppStartup
  7. {
  8. public void ConfigureServices(IServiceCollection services)
  9. {
  10. services.AddDatabaseAccessor(options =>
  11. {
  12. options.AddDbPool<DefaultDbContext>($"{DbProvider.MySql}@8.0.31");
  13. }, "YBEE.EQM.Database.Migrations");
  14. }
  15. }
  16. }