/// <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; }
/// <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 }
/// <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) { }