예제 #1
0
        /// <summary>
        /// Create a new instance of a FieldLink object.
        /// </summary>
        /// <param name="sourceFieldName"></param>
        /// <param name="targetFieldName"></param>
        /// <param name="mapType"></param>
        /// <param name="relationshipType"></param>
        public FieldLink(string sourceFieldName, string targetFieldName, MapTypeEnum mapType, InstanceTypeEnum relationshipType)
        {
            // Store the values
            this.SourceFieldName  = sourceFieldName;
            this.TargetFieldName  = targetFieldName;
            this.MapType          = mapType;
            this.RelationshipType = relationshipType;

            // Perform initializations for this object
            Init();
        }
 /// <summary>
 /// Set the map type
 /// </summary>
 /// <param name="value">Map type enum value to set</param>
 public void SetMapType(MapTypeEnum value)
 {
     MapType = value.ToString();
 }