Esempio n. 1
0
        protected override void BuildTypeAttributes(List <IOrmAttribute> typeAttributes)
        {
            typeAttributes.Add(this.KeyAttribute);

            bool isSource = IsSourceWithinAssociation();

            if (this.PersistentTypeHasAssociations != null)
            {
                IPersistentTypeHasAssociations associations = this.PersistentTypeHasAssociations;
                IAssociationInfo association = isSource
                                                   ? associations.TargetAssociation
                                                   : associations.SourceAssociation;
                typeAttributes.Add(association);
            }
        }
 bool IPersistentTypeHasAssociations.EqualAssociationLinkTo(IPersistentTypeHasAssociations other)
 {
     return(this.SourcePersistentType == other.SourcePersistentType &&
            this.TargetPersistentType == other.TargetPersistentType);
 }