фиксы
This commit is contained in:
		| @@ -104,13 +104,7 @@ public class ApplicationContext : IdentityDbContext<User> | |||||||
|     public ApplicationContext(DbContextOptions<ApplicationContext> options) |     public ApplicationContext(DbContextOptions<ApplicationContext> options) | ||||||
|         : base(options) |         : base(options) | ||||||
|     { |     { | ||||||
|         try{ |         Database.EnsureCreated(); | ||||||
|             Database.Migrate(); |  | ||||||
|         } |  | ||||||
|         catch |  | ||||||
|         { |  | ||||||
|             Database.EnsureCreated(); |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     protected override void OnModelCreating(ModelBuilder builder) |     protected override void OnModelCreating(ModelBuilder builder) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user