コード例 #1
0
 public void GetStoreSchemaMapping_loads_V3_schema_mapping_xml()
 {
     TestReadResource(
         SqlProviderManifest.GetStoreSchemaMapping("StoreSchemaMappingVersion3"),
         "Mapping",
         @"urn:schemas-microsoft-com:windows:storage:mapping:CS",
         x => x.Name == "EntitySetMapping" && x.GetAttribute("Name") == "FunctionReturnTableColumns", true);
 }
コード例 #2
0
 protected override XmlReader GetDbInformation(string informationType)
 {
     if (informationType == "StoreSchemaDefinitionVersion3" || informationType == "StoreSchemaDefinition")
     {
         return(this.GetStoreSchemaDescription(informationType));
     }
     if (informationType == "StoreSchemaMappingVersion3" || informationType == "StoreSchemaMapping")
     {
         return(SqlProviderManifest.GetStoreSchemaMapping(informationType));
     }
     if (informationType == "ConceptualSchemaDefinitionVersion3" || informationType == "ConceptualSchemaDefinition")
     {
         return((XmlReader)null);
     }
     throw new ProviderIncompatibleException(Strings.ProviderReturnedNullForGetDbInformation((object)informationType));
 }