This project is read-only.


Make DbMigrationsConfiguration.HistoryContextFactory take a Func and remove IHistoryContextFactory


As decided in API review we want to remove this interface and just use a Func
Closed Apr 11, 2013 at 12:33 AM by lukew
Verified fixed in 6.0.0-alpha3-40410


ajcvickers wrote Apr 10, 2013 at 12:56 AM

Fixed in 667912009662

GoingOldSkool (Replace IHistoryContextFactory interface with HistoryContextFactory delegate)

IHistoryContextFactory existed as a way to register a service that could create customized HistoryContext instances. However, it was a pain to have to create a class for this when just a delegate would be fine. The problems with using Func<DbConnection, bool, string> is that it is not very helpful for Intellisense or very specific/useful for defining a service. So instead this change introduces a delegate type that provides help and is a reasonable type to define a service for.

lukew wrote Apr 11, 2013 at 12:32 AM

Verified fixed in 6.0.0-alpha3-40410