One more thing about naming indexes conventions. Indexes namespace is
global. So if you have several same fields in different tables, you'll have
the same name index for both. Good example in three entities with N:M
relations:
Entity1: eid, name
Entity2: eid, name
Entity3: eid, name
Entity1Entity3: Entity1_eid, Entity3_eid
Entity1Entity2: Entity1_eid, Entity2_eid
Will try to create index IX_Entity1_eid for both tables and fail on this.
I've added the table name to the index name: IX_Entity1Entity3_Entity1_eid,
and as I mentioned before I've experienced long name error.

2014-12-30 11:35 GMT+02:00 Геннадий Забула <zabulu...@gmail.com>:

> 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>:
>
>> 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>:
>>
>>> > 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
>>> 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

Reply via email to