Commit Graph

25 Commits

Author SHA1 Message Date
Rowan Miller 1c26436041 Bring back "Apply Migrations" button on database error page
Mostly just a revert of the commit that removed this functionality, with a few changes:
* Perform proper JavaScript encoding in the script part of the database error page Views/BaseView.cs
* Use the builder pattern in the UseXyz extension methods on IApplicationBuilder (per #184). Also applying this to DatabaseErrorPageOptions to keep things consistent.
* Fixing a few tests that were getting the context from DI but putting it in a using block so that it got disposed (rather than letting DI handle disposing).
2015-10-20 09:29:15 -07:00
Rowan Miller 111dab7ddf 🐛 No database error page for existing databases
When there is an existing database and no migrations are present, then we should just display the standard error page as they are not using migrations and need to adjust their mapping code to match the existing schema.
Resolve #182
2015-10-20 09:23:42 -07:00
Pranav K 3657a1a14b Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:46 -07:00
Kiran Challa 12d9302a31 Skipped Database error page tests temporarily to fix Travis CI 2015-09-04 00:46:23 -07:00
Brice Lambson e8fc5a970a React to aspnet/EntityFramework#2831 2015-08-17 10:24:21 -07:00
Arthur Vickers 83c6ea7116 React to EF namespace changes 2015-06-30 10:59:15 -07:00
Arthur Vickers 33a673cd35 React to EF name changes 2015-06-23 16:00:32 -07:00
Arthur Vickers 791ec1a016 Use ApplyMigrations extension method 2015-06-19 11:37:01 -07:00
Arthur Vickers ccdedc704d React to EntityOptions -> DbContextOptions rename 2015-06-15 23:01:16 -07:00
Arthur Vickers 760be0c77c React to DbContextOptions name change 2015-05-26 11:34:48 -07:00
N. Taylor Mullen b1643b438a Update LICENSE.txt and license header on files. 2015-05-01 13:46:24 -07:00
ajcvickers c72add2736 Merge branch 'dev' of github.com:aspnet/Diagnostics into dev 2015-04-07 21:51:30 -07:00
ajcvickers 027cbdac04 React to EF change 2015-04-07 21:51:11 -07:00
Praburaj 888ed48249 Using in memory store on mono 2015-04-06 11:06:27 -07:00
Rowan Miller 105d3353cf 🔥 Remove migrations end point 2015-03-23 15:56:30 -07:00
Hao Kung b66b2df264 React to hosting 2015-03-19 11:22:22 -07:00
ajcvickers f4c05c8b09 Update to use DbContextOptionsBuilder 2015-03-11 13:15:22 -07:00
ajcvickers 4139f3f18b React to EF changes in tests. 2015-02-05 11:09:32 -08:00
mikary 32e28a8fc8 Reacting to API changes in EntityFramework Migrations 2015-01-07 14:51:05 -08:00
mikary f76583b18b Reacting to API changes in EntityFramework 2014-12-19 10:47:45 -08:00
rowanmiller 5e00937d59 Handle wrapped exceptions in Database Error Page
If a database exception is wrapped later in the request (after EF has logged it) then we were not displaying the database error page.
This was occurring in ASP.NET Identity where the exception was getting wrapped in an AggregateException.
We now walk the tree of inner exceptions looking for a match.
Also adding some extra logging as this was hard to debug without resorting to source code.
2014-12-18 14:16:38 -08:00
ajcvickers e6fdb8cbd2 React to EF dynamic services changes 2014-11-25 13:38:22 -08:00
ajcvickers 6f8407bca4 Reacting to EF change 2014-11-21 11:42:38 -08:00
rowanmiller ef544d9baa Update Microsoft.AspNet.Diagnostics.Entity to build in this repo
Previous commit copied code verbatim from EF repo
This commit updates it to build in this repo
2014-11-18 15:12:13 -08:00
rowanmiller fad5ba4323 Copy of Microsoft.AspNet.Diagnostics.Entity code from EntityFramework
Straight copy of code with no modification so that we have a baseline of changes made to port the code to the Diagnostics repo
2014-11-17 15:49:09 -08:00