コード例 #1
0
		/// <summary>
		/// Create a new condition phrase.
		/// </summary>
		/// <param name="relationDef">Relation definition.</param>
		public APSqlConditionPhrase(APRelationDef relationDef)
		{
			if (relationDef == null)
				throw new ArgumentNullException("relationDef");
			_expr = new APSqlColumnExpr(relationDef.Master);
			_conditionOperator = APSqlConditionOperator.Equals;
			_value = new APSqlColumnExpr(relationDef.Slave);
		}
コード例 #2
0
 /// <summary>
 /// Create a new condition phrase.
 /// </summary>
 /// <param name="relationDef">Relation definition.</param>
 public APSqlConditionPhrase(APRelationDef relationDef)
 {
     if (relationDef == null)
     {
         throw new ArgumentNullException("relationDef");
     }
     _expr = new APSqlColumnExpr(relationDef.Master);
     _conditionOperator = APSqlConditionOperator.Equals;
     _value             = new APSqlColumnExpr(relationDef.Slave);
 }
コード例 #3
0
		/// <summary>
		/// Create a new LookupAPRptColumn.
		/// </summary>
		/// <param name="selectExpr">SQL 'SELECT' Expression.</param>
		/// <param name="id">Column unique ID.</param>
		/// <param name="title">Title.</param>
		/// <param name="joinTable">Join Table.</param>
		/// <param name="joinType">Join Type.</param>
		/// <param name="relationDef">Relation define.</param>
		/// <param name="relationShowColumn">Show relation column.</param>
		public LookupAPRptColumn(APSqlOperateExpr selectExpr, string id, string title,
			APTableDef joinTable,
			APSqlJoinType joinType,
			APRelationDef relationDef,
			APRptColumn relationShowColumn)
			: base(selectExpr, id, title)
		{
			_joinTable = joinTable;
			_joinType = joinType;
			_relationDef = relationDef;
			_relationShowColumn = relationShowColumn;
		}