Ejemplo n.º 1
0
 internal Version GetMetadataVersion(DataServiceOperationContext operationContext)
 {
     if (this.responseMetadataVersion == null)
     {
         RequestDescription.UpdateMetadataVersion(this, operationContext, out this.responseMetadataVersion, out this.edmSchemaVersion);
     }
     this.responseMetadataVersion = WebUtil.RaiseVersion(this.responseMetadataVersion, operationContext.Host.RequestMinVersion);
     if (this.responseMetadataVersion == RequestDescription.Version3Dot0)
     {
         this.edmSchemaVersion = WebUtil.RaiseMetadataEdmSchemaVersion(this.edmSchemaVersion, MetadataEdmSchemaVersion.Version3Dot0);
     }
     return(this.responseMetadataVersion);
 }