public static void Initialize(IApplicationBuilder app) { using (var serviceScope = app.ApplicationServices.GetService <IServiceScopeFactory>().CreateScope()) { SageBackendContext dbContext = serviceScope.ServiceProvider.GetRequiredService <SageBackendContext>(); dbContext.Database.Migrate(); } }
public PeopleRepository(SageBackendContext context) : base(context) { }
public BaseRepository(SageBackendContext context) { this._context = context; }
public AddressRepository(SageBackendContext context) : base(context) { }