示例#1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="resourceMetadataContext">The context to answer basic metadata questions about the resource.</param>
        /// <param name="metadataContext">The metadata context.</param>
        /// <param name="uriBuilder">The uri builder to use.</param>
        internal ODataConventionalResourceMetadataBuilder(IODataResourceMetadataContext resourceMetadataContext, IODataMetadataContext metadataContext, ODataUriBuilder uriBuilder)
        {
            Debug.Assert(resourceMetadataContext != null, "resourceMetadataContext != null");
            Debug.Assert(metadataContext != null, "metadataContext != null");
            Debug.Assert(uriBuilder != null, "uriBuilder != null");

            this.ResourceMetadataContext = resourceMetadataContext;
            this.UriBuilder      = uriBuilder;
            this.MetadataContext = metadataContext;
            this.ProcessedNestedResourceInfos = new HashSet <string>(StringComparer.Ordinal);
            this.resource = resourceMetadataContext.Resource;
        }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="resourceMetadataContext">The context to answer basic metadata questions about the resource.</param>
 /// <param name="metadataContext">The metadata context.</param>
 /// <param name="uriBuilder">The uri builder to use.</param>
 internal ODataConventionalEntityMetadataBuilder(IODataResourceMetadataContext resourceMetadataContext, IODataMetadataContext metadataContext, ODataUriBuilder uriBuilder)
     : base(resourceMetadataContext, metadataContext, uriBuilder)
 {
     this.isResourceEnd = true;  // Keep default behavior
 }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="resourceMetadataContext">The context to answer basic metadata questions about the resource.</param>
 /// <param name="metadataContext">The metadata context.</param>
 /// <param name="uriBuilder">The uri builder to use.</param>
 internal ODataConventionalIdMetadataBuilder(IODataResourceMetadataContext resourceMetadataContext, IODataMetadataContext metadataContext, ODataUriBuilder uriBuilder)
     : base(resourceMetadataContext, metadataContext, uriBuilder)
 {
 }