Esempio n. 1
0
        public ComponentJoin(FromClause fromClause, FromElement origin, string alias, string componentPath, ComponentType componentType)
            : base(fromClause, origin, alias)
        {
            this.componentPath = componentPath;
            this.componentType = componentType;
            componentProperty  = StringHelper.Unqualify(componentPath);
            fromClause.AddJoinByPathMap(componentPath, this);
            InitializeComponentJoin(new ComponentFromElementType(this));

            string[] cols = origin.GetPropertyMapping("").ToColumns(TableAlias, componentProperty);
            columns = string.Join(", ", cols);
        }
Esempio n. 2
0
		public ComponentJoin(FromClause fromClause, FromElement origin, string alias, string componentPath, ComponentType componentType)
			: base(fromClause, origin, alias)
		{
			this.componentPath = componentPath;
			this.componentType = componentType;
			componentProperty = StringHelper.Unqualify(componentPath);
			fromClause.AddJoinByPathMap(componentPath, this);
			InitializeComponentJoin(new ComponentFromElementType(this));

			string[] cols = origin.GetPropertyMapping("").ToColumns(TableAlias, componentProperty);
			columns = string.Join(", ", cols);
		}