/// <summary> /// Adds the specified property pair to this join /// </summary> /// <param name="rel"></param> /// <param name="primary"></param> /// <param name="secondary"></param> public static void AddRelateProperty(this IAttributeRelation rel, string primary, string secondary) { Check.NotNull(rel, "rel"); //NOXLATE rel.AddRelateProperty(new OSGeo.MapGuide.ObjectModels.FeatureSource.v1_0_0.RelatePropertyType() { FeatureClassProperty = primary, AttributeClassProperty = secondary }); }
/// <summary> /// Adds the specified property pair to this join /// </summary> /// <param name="rel"></param> /// <param name="primary"></param> /// <param name="secondary"></param> public static void AddRelateProperty(this IAttributeRelation rel, string primary, string secondary) { Check.ArgumentNotNull(rel, nameof(rel)); rel.AddRelateProperty(new RelatePropertyType() { FeatureClassProperty = primary, AttributeClassProperty = secondary }); }
void IFeatureSourceExtension.RemoveRelation(IAttributeRelation relate) { var rel = relate as AttributeRelateType; if (rel != null) { this.AttributeRelate.Remove(rel); } }
public JoinSettings(string primaryFeatureSource, string primaryClass, IAttributeRelation rel) : this() { Check.NotNull(rel, "rel"); //NOXLATE Check.NotNull(primaryClass, "primaryClass"); //NOXLATE Check.NotNull(primaryFeatureSource, "primaryFeatureSource"); //NOXLATE _primaryFeatureSource = primaryFeatureSource; _primaryClass = primaryClass; grdJoinKeys.AutoGenerateColumns = false; _rel = rel; }
public JoinSettings(string primaryFeatureSource, string primaryClass, IAttributeRelation rel) : this() { Check.ArgumentNotNull(rel, nameof(rel)); Check.ArgumentNotNull(primaryClass, nameof(primaryClass)); Check.ArgumentNotNull(primaryFeatureSource, nameof(primaryFeatureSource)); _primaryFeatureSource = primaryFeatureSource; _primaryClass = primaryClass; grdJoinKeys.AutoGenerateColumns = false; _rel = rel; }
private void UpdateJoinKeyList(IAttributeRelation rel) { grdJoinKeys.DataSource = new List<IRelateProperty>(rel.RelateProperty); }
void IFeatureSourceExtension.RemoveRelation(IAttributeRelation relate) { var rel = relate as AttributeRelateType; if (rel != null) this.AttributeRelate.Remove(rel); }
private void UpdateJoinKeyList(IAttributeRelation rel) => grdJoinKeys.DataSource = new List <IRelateProperty>(rel.RelateProperty);