Exemple #1
0
        private Tuple <string, string, AssociationPropertyType> GetInfo(bool isOwner)
        {
            string tableUrn     = isOwner ? this.OwnerSetting.Table.Urn : this.TargetSetting.Table.Urn;
            string propertyName = isOwner ? this.OwnerSetting.PropertyName : this.TargetSetting.PropertyName;
            AssociationPropertyType propertyType = isOwner ? this.OwnerSetting.PropertyType : this.TargetSetting.PropertyType;

            return(new Tuple <string, string, AssociationPropertyType>(tableUrn, propertyName, propertyType));
        }
Exemple #2
0
 public void AssignFrom(AssociationItemSetting other)
 {
     this.PropertyName   = other.PropertyName;
     this.OnOwnerRemove  = other.OnOwnerRemove;
     this.OnTargetRemove = other.OnTargetRemove;
     this.table          = other.table;
     this.TableUrn       = other.TableUrn;
     this.Column         = other.Column;
     this.PropertyType   = other.PropertyType;
 }