private bool TryGetDsNode(DottedNameNode dottedNameNode, TexlBinding binding, out IList <FirstNameNode> dsNode)
        {
            Contracts.AssertValueOrNull(dottedNameNode);
            Contracts.AssertValue(binding);

            dsNode = null;
            if (dottedNameNode == null || !binding.HasExpandInfo(dottedNameNode))
            {
                return(false);
            }

            return(TryGetValidValue(dottedNameNode.Left, binding, out dsNode));
        }
Exemplo n.º 2
0
        private bool TryGetEntityInfo(DottedNameNode dottedNameNode, TexlBinding binding, out IExpandInfo entityInfo)
        {
            Contracts.AssertValueOrNull(dottedNameNode);
            Contracts.AssertValue(binding);

            entityInfo = null;
            if (dottedNameNode == null || !binding.HasExpandInfo(dottedNameNode))
            {
                return(false);
            }

            return(binding.TryGetEntityInfo(dottedNameNode, out entityInfo));
        }
        private bool TryGetDsInfo(DottedNameNode dottedNameNode, TexlBinding binding, out IExternalDataSource dsInfo)
        {
            Contracts.AssertValueOrNull(dottedNameNode);
            Contracts.AssertValue(binding);

            dsInfo = null;
            if (dottedNameNode == null || !binding.HasExpandInfo(dottedNameNode))
            {
                return(false);
            }

            IExpandInfo info;

            binding.TryGetEntityInfo(dottedNameNode, out info).Verify();
            dsInfo = info.ParentDataSource;
            return(true);
        }