예제 #1
0
 /// <summary>
 /// Creates a new instance of <see cref="ContainerQualifiedWildcardSelectItem"/>.
 /// </summary>
 /// <param name="metadataProviderEdmModel">The metadata provider-based edm model.</param>
 /// <returns>A new instance of <see cref="ContainerQualifiedWildcardSelectItem"/>.</returns>
 private static ContainerQualifiedWildcardSelectItem CreateContainerQualifiedWildcardSelection(MetadataProviderEdmModel metadataProviderEdmModel)
 {
     return(new ContainerQualifiedWildcardSelectItem(metadataProviderEdmModel.EnsureDefaultEntityContainer()));
 }
예제 #2
0
 /// <summary>
 /// Creates an instance of <see cref="SelectItem"/> to represent the selection of an set of operations.
 /// </summary>
 /// <param name="metadataProviderEdmModel">The metadata provider-based edm model.</param>
 /// <param name="selectedServiceActions">The operations being selected.</param>
 /// <param name="typeSegments">Type segments seen in the path so far.</param>
 /// <returns>A new <see cref="SelectItem"/> to represent the selection of the operations.</returns>
 private static SelectItem CreateOperationSelection(MetadataProviderEdmModel metadataProviderEdmModel, IEnumerable <OperationWrapper> selectedServiceActions, ICollection <TypeSegment> typeSegments)
 {
     return(new PathSelectItem(CreatePath(typeSegments, new OperationSegment(selectedServiceActions.Select(a => metadataProviderEdmModel.EnsureDefaultEntityContainer().EnsureFunctionImport(a)).ToList()))));
 }