System.Data.Common.EntitySql.AST.DotExpr.IsMultipartIdentifier(out string[])

Here are the examples of the csharp api class System.Data.Common.EntitySql.AST.DotExpr.IsMultipartIdentifier(out string[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: referencesource
Source File: DotExpr.cs
View license
internal bool IsMultipartIdentifier(out string[] names)
        {
            if (_isMultipartIdentifierComputed.HasValue)
            {
                names = _names;
                return _isMultipartIdentifierComputed.Value;
            }

            _names = null;
            Identifier leftIdenitifier = _leftExpr as Identifier;
            if (leftIdenitifier != null)
            {
                _names = new string[] { leftIdenitifier.Name, _identifier.Name };
            }

            DotExpr leftDotExpr = _leftExpr as DotExpr;
            string[] leftNames;
            if (leftDotExpr != null && leftDotExpr.IsMultipartIdentifier(out leftNames))
            {
                _names = new string[leftNames.Length + 1];
                leftNames.CopyTo(_names, 0);
                _names[_names.Length - 1] = _identifier.Name;
            }

            Debug.Assert(_names == null || _names.Length > 0, "_names must be null or non-empty");

            _isMultipartIdentifierComputed = _names != null;
            names = _names;
            return _isMultipartIdentifierComputed.Value;
        }