AddJoinByPathMap() 공개 메소드

public AddJoinByPathMap ( string path, NHibernate.Hql.Ast.ANTLR.Tree.FromElement destination ) : void
path string
destination NHibernate.Hql.Ast.ANTLR.Tree.FromElement
리턴 void
예제 #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);
        }
예제 #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);
		}
예제 #3
0
 private FromElement InitializeJoin(
     string path,
     FromElement destination,
     JoinSequence joinSequence,
     string[] columns,
     FromElement origin,
     bool manyToMany)
 {
     destination.Type         = HqlSqlWalker.JOIN_FRAGMENT;
     destination.JoinSequence = joinSequence;
     destination.Columns      = columns;
     destination.SetOrigin(origin, manyToMany);
     _fromClause.AddJoinByPathMap(path, destination);
     return(destination);
 }