コード例 #1
0
ファイル: ProjectCore.cs プロジェクト: Veggie13/raptor
        /// <exception cref="ArgumentNullException">
        /// <paramref name="first"/> is null.-or-
        /// <paramref name="second"/> is null.
        /// </exception>
        public AssociationRelation AddAssociationRelation(TypeBase first, TypeBase second)
        {
            AssociationRelation association = new AssociationRelation(first, second);

            AddRelation(association);
            return(association);
        }
コード例 #2
0
ファイル: ProjectCore.cs プロジェクト: Veggie13/raptor
        /// <exception cref="ArgumentNullException">
        /// <paramref name="first"/> is null.-or-
        /// <paramref name="second"/> is null.
        /// </exception>
        public AssociationRelation AddAggregationRelation(TypeBase first, TypeBase second)
        {
            AssociationRelation association = new AssociationRelation(first, second);

            association.IsAggregation = true;

            AddRelation(association);
            return(association);
        }