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