internal IEdmFunctionImport EnsureFunctionImport(OperationWrapper serviceOperation)
 {
     List<MetadataProviderEdmFunctionImport> list;
     string name = serviceOperation.Name;
     if (!this.functionImportCache.TryGetValue(name, out list))
     {
         list = new List<MetadataProviderEdmFunctionImport>();
         this.functionImportCache.Add(name, list);
     }
     MetadataProviderEdmFunctionImport item = list.Find(f => f.ServiceOperation == serviceOperation);
     if (item == null)
     {
         item = new MetadataProviderEdmFunctionImport(this.model, this, serviceOperation);
         list.Add(item);
     }
     return item;
 }
        internal IEdmFunctionImport EnsureFunctionImport(OperationWrapper serviceOperation)
        {
            List <MetadataProviderEdmFunctionImport> list;
            string name = serviceOperation.Name;

            if (!this.functionImportCache.TryGetValue(name, out list))
            {
                list = new List <MetadataProviderEdmFunctionImport>();
                this.functionImportCache.Add(name, list);
            }
            MetadataProviderEdmFunctionImport item = list.Find(f => f.ServiceOperation == serviceOperation);

            if (item == null)
            {
                item = new MetadataProviderEdmFunctionImport(this.model, this, serviceOperation);
                list.Add(item);
            }
            return(item);
        }