1

Closed

Make DbMigrationsConfiguration.HistoryContextFactory take a Func and remove IHistoryContextFactory

description

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

comments

ajcvickers wrote Apr 9, 2013 at 11:56 PM

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 10, 2013 at 11:32 PM

Verified fixed in 6.0.0-alpha3-40410