That’s not the same as what AddInterceptor call does.
--
Mgr. Jiří Činčura
Independent IT Specialist
From: Геннадий Забула [mailto:zabulu...@gmail.com]
Sent: Tuesday, December 30, 2014 10:36 AM
To: For users and developers of the Firebird .NET providers
Subject: Re: [Firebird-net-provider] EF Migrations
And looks like it works:
public FbProviderServices()
{
#if (EF_6)
AddDependencyResolver(new
SingletonDependencyResolver<IDbConnectionFactory>(new FbConnectionFactory()));
AddDependencyResolver(new
SingletonDependencyResolver<Func<MigrationSqlGenerator>>(() => new
FbMigrationSqlGenerator(), ProviderInvariantName));
System.Data.Entity.Infrastructure.Interception.DbInterception.Add(new
MigrationsTransactionsInterceptor());
#endif
}
2014-12-30 11:29 GMT+02:00 Геннадий Забула
<zabulu...@gmail.com<mailto:zabulu...@gmail.com>>:
I've found out that there is the static class:
System.Data.Entity.Infrastructure.Interception.DbInterception, which adds
IDbInterceptor,
2014-12-30 11:23 GMT+02:00 Jiří Činčura
<j...@cincura.net<mailto:j...@cincura.net>>:
> I'm using the same Context for both MSSQL and Firebird, how deriving from
> FbDbConfiguration can affect MSSQL code path? Can we override this somehow
> just in Firebird provider?
You can use the same context. It's just configuration. I'm waiting for reply
from EF guys to see what other options are.
--
Mgr. Jiří Činčura
Independent IT Specialist
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net<mailto:Firebird-net-provider@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider