/// <summary>Initializes a new instance of the <see cref="Join" /> class. Initialise une nouvelle instance de la classe<see cref="Join" />.</summary> /// <param name="type">The type.</param> /// <param name="joinTable">The join Table.</param> /// <param name="otherColumn">The other Column.</param> /// <param name="rootColumn">The root Column.</param> internal Join(TypeJoin type, ITable joinTable, IColumn otherColumn, IColumn rootColumn) { this.Type = type; this.JoinTable = joinTable; this.RootColumn = rootColumn; this.OtherColumn = otherColumn; }
/// <summary>The add join.</summary> /// <param name="typeJoin">The type join.</param> /// <param name="otherColumn">The other column.</param> /// <param name="tableJoin">The table join.</param> /// <param name="rootColumn">The root column.</param> public void AddJoin(TypeJoin typeJoin, string otherColumn, ITable tableJoin, string rootColumn) { var jointureT1 = new Join(typeJoin, tableJoin, new Column(this.PrincipalTable, otherColumn), new Column(tableJoin, rootColumn)); this.joins.Add(jointureT1); }