protected override string GetDbProviderManifestToken(Legacy.DbConnection connection)
 {
     // EF Designer does not unwrap ProviderIncompatibleExceptions and this method is protected and
     // is called by GetProviderManifest method which will wrap any exception in ProviderIncompatibleException.
     // Therefore even if the wrapped provider services throws a legacy ProviderIncompatibleException
     // it will be wrapped in non-legacy ProviderCompatibleException. Unwrapping the legacy here
     // ProviderIncompatibleException would be tricky and should not be done unless really necessary.
     return _wrappedProviderServices.GetProviderManifestToken(connection);
 }
        public LegacyDbProviderManifestWrapper(Legacy.DbProviderManifest wrappedProviderManifest)
        {
            Debug.Assert(wrappedProviderManifest != null, "wrappedProviderManifest != null");

            _wrappedProviderManifest = wrappedProviderManifest;

            _legacyStoreTypes = _wrappedProviderManifest.GetStoreTypes().ToArray();
            _storeTypes =
                new ReadOnlyCollection<PrimitiveType>(
                    _legacyStoreTypes.Select(t => ConvertFromLegacyStoreEdmType(t, this)).ToList());
        }
        public LegacyDbProviderServicesWrapper(Legacy.DbProviderServices wrappedProviderServices)
        {
            Debug.Assert(wrappedProviderServices != null, "wrappedProviderServices != null");

            _wrappedProviderServices = wrappedProviderServices;
        }