/// <summary>
        /// Initializes aliased import.
        /// </summary>
        internal NamespaceImport(BuiltInExpr bltInExpr)
        {
            _namespaceAlias = null;

            Identifier aliasId = bltInExpr.Arg1 as Identifier;
            if (aliasId == null)
            {
                throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, System.Data.Entity.Strings.InvalidNamespaceAlias);
            }

            _namespaceAlias = aliasId;
            _namespaceName = bltInExpr.Arg2;
        }
Exemple #2
0
        /// <summary>
        /// Initializes aliased import.
        /// </summary>
        internal NamespaceImport(BuiltInExpr bltInExpr)
        {
            _namespaceAlias = null;

            Identifier aliasId = bltInExpr.Arg1 as Identifier;

            if (aliasId == null)
            {
                throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, System.Data.Entity.Strings.InvalidNamespaceAlias);
            }

            _namespaceAlias = aliasId;
            _namespaceName  = bltInExpr.Arg2;
        }