Esempio n. 1
0
 private void VerifyCanCreateODataParameterReader(IEdmFunctionImport functionImport)
 {
     this.VerifyReaderNotDisposedAndNotUsed();
     if (this.readingResponse)
     {
         throw new ODataException(Microsoft.Data.OData.Strings.ODataMessageReader_ParameterPayloadInResponse);
     }
     ODataVersionChecker.CheckParameterPayload(this.version);
     if ((functionImport != null) && !this.model.IsUserModel())
     {
         throw new ArgumentException(Microsoft.Data.OData.Strings.ODataMessageReader_FunctionImportSpecifiedWithoutMetadata("functionImport"), "functionImport");
     }
 }
Esempio n. 2
0
 private void VerifyODataParameterWriterHeaders()
 {
     ODataVersionChecker.CheckParameterPayload(this.settings.Version.Value);
 }