示例#1
0
        public void GetStoreSchemaDescriptionDoesNotThrowForServer50OrGreater()
        {
            MySqlProviderManifest manifest = new MySqlProviderManifest(st.Version.Major + "." + st.Version.Minor);

            using (XmlReader reader = manifest.GetInformation(DbXmlEnabledProviderManifest.StoreSchemaDefinition))
            {
                Assert.NotNull(reader);
            }
        }
        public void GetStoreSchemaDescriptionDoesNotThrowForServer50OrGreater()
        {
            if (st.Version < new Version(5, 0))
            {
                return;
            }

            MySqlProviderManifest manifest = new MySqlProviderManifest(st.Version.Major + "." + st.Version.Minor);

#if !EF6
            using (XmlReader reader = manifest.GetInformation(DbProviderManifest.StoreSchemaDefinition))
#else
            using (XmlReader reader = manifest.GetInformation(DbXmlEnabledProviderManifest.StoreSchemaDefinition))
#endif
            {
                Assert.NotNull(reader);
            }
        }
示例#3
0
        public void GetStoreSchemaDescriptionDoesNotThrowForServer50OrGreater()
        {
            if (Version < new Version(5, 0))
            {
                return;
            }

            MySqlProviderManifest manifest = new MySqlProviderManifest(Version.Major + "." + Version.Minor);

            using (XmlReader reader = manifest.GetInformation(DbProviderManifest.StoreSchemaDefinition))
            {
                Assert.IsNotNull(reader);
            }
        }