/// <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
     });
 }
示例#2
0
 /// <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
     });
 }
示例#3
0
        void IFeatureSourceExtension.RemoveRelation(IAttributeRelation relate)
        {
            var rel = relate as AttributeRelateType;

            if (rel != null)
            {
                this.AttributeRelate.Remove(rel);
            }
        }
示例#4
0
        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;
        }
示例#6
0
 private void UpdateJoinKeyList(IAttributeRelation rel)
 {
     grdJoinKeys.DataSource = new List<IRelateProperty>(rel.RelateProperty);
 }
示例#7
0
 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);