Example #1
0
        internal Uri GetEntitySetUri(string entitySetName)
        {
            Uri entitySetUriFromResolver = this.GetEntitySetUriFromResolver(entitySetName);

            if (entitySetUriFromResolver != null)
            {
                return(Util.ForceNonSlashTerminatedUri(entitySetUriFromResolver));
            }
            if (this.baseUriWithSlash == null)
            {
                throw Error.InvalidOperation(Strings.Context_ResolveEntitySetOrBaseUriRequired(entitySetName));
            }
            return(Util.CreateUri(this.baseUriWithSlash, new Uri(entitySetName, UriKind.Relative)));
        }