/// <summary> /// Removes a join criteria that is to be part of the query result /// </summary> /// <param name="criteria"></param> public void RemoveJoinCriteria(FdoJoinCriteriaInfo criteria) { _joinCriteria.Remove(criteria); }
/// <summary> /// Adds a join criteria to the query result /// </summary> /// <param name="criteria"></param> public void AddJoinCriteria(FdoJoinCriteriaInfo criteria) { _joinCriteria.Add(criteria); }
public FdoJoinDialog(FdoConnection conn, string primarySchemaName, string primaryClassName, string primaryClassAlias, FdoJoinCriteriaInfo criteria) : this(conn, primarySchemaName, primaryClassName, primaryClassAlias) { this.Criteria = criteria; }
private void btnOk_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.OK; if (this.Criteria != null) { this.Criteria.JoinPrefix = txtPrefix.Text; this.Criteria.JoinSchema = ((FeatureSchema)cmbSchema.SelectedItem).Name; this.Criteria.JoinClass = ((ClassDefinition)cmbClass.SelectedItem).Name; this.Criteria.JoinClassAlias = txtJoinClassAlias.Text; this.Criteria.JoinFilter = txtJoinFilter.Text; this.Criteria.JoinType = ((OSGeo.FDO.Expression.JoinType)cmbJoinType.SelectedItem); } else { this.Criteria = new FdoJoinCriteriaInfo() { JoinPrefix = txtPrefix.Text, JoinSchema = ((FeatureSchema)cmbSchema.SelectedItem).Name, JoinClass = ((ClassDefinition)cmbClass.SelectedItem).Name, JoinClassAlias = txtJoinClassAlias.Text, JoinFilter = txtJoinFilter.Text, JoinType = ((OSGeo.FDO.Expression.JoinType)cmbJoinType.SelectedItem) }; } }