private void ParseEdmxElement(Version edmxVersion) { Version version = null; string attributeValue = this.GetAttributeValue(null, "Version"); if (attributeValue != null && (!EdmxReader.TryParseVersion(attributeValue, out version) || version != edmxVersion)) { this.RaiseError(EdmErrorCode.InvalidVersionNumber, Strings.EdmxParser_EdmxVersionMismatch); } this.ParseElement("Edmx", this.edmxParserLookup); }
private void ParseDataServicesElement() { string attributeValue = this.GetAttributeValue("http://schemas.microsoft.com/ado/2007/08/dataservices/metadata", "DataServiceVersion"); if (attributeValue != null && !EdmxReader.TryParseVersion(attributeValue, out this.dataServiceVersion)) { this.RaiseError(EdmErrorCode.InvalidVersionNumber, Strings.EdmxParser_EdmxDataServiceVersionInvalid); } string str = this.GetAttributeValue("http://schemas.microsoft.com/ado/2007/08/dataservices/metadata", "MaxDataServiceVersion"); if (str != null && !EdmxReader.TryParseVersion(str, out this.maxDataServiceVersion)) { this.RaiseError(EdmErrorCode.InvalidVersionNumber, Strings.EdmxParser_EdmxMaxDataServiceVersionInvalid); } this.ParseTargetElement("DataServices", this.dataServicesParserLookup); }