private static string GetMappingSchemaNamespace(Version entityFrameworkVersion) { Debug.Assert(ValidVersions.Contains(entityFrameworkVersion), "Did you forget to check for valid versions before calling this private method?"); if (entityFrameworkVersion == EntityFrameworkVersions.Version1) { return(StorageMslConstructs.NamespaceUriV1); } else if (entityFrameworkVersion == EntityFrameworkVersions.Version2) { return(StorageMslConstructs.NamespaceUriV2); } else { Debug.Assert(entityFrameworkVersion == EntityFrameworkVersions.Version3, "did you add a new version?"); return(StorageMslConstructs.NamespaceUriV3); } }
private static string GetStoreSchemaNamespace(Version entityFrameworkVersion) { Debug.Assert(ValidVersions.Contains(entityFrameworkVersion), "Did you forget to check for valid versions before calling this private method?"); if (entityFrameworkVersion == EntityFrameworkVersions.Version1) { return(XmlConstants.TargetNamespace_1); } else if (entityFrameworkVersion == EntityFrameworkVersions.Version2) { return(XmlConstants.TargetNamespace_2); } else { Debug.Assert(entityFrameworkVersion == EntityFrameworkVersions.Version3, "did you add a new version?"); return(XmlConstants.TargetNamespace_3); } }