예제 #1
0
        public DynamicManyToManyRoleType AddManyToMany(DynamicObjectType roleObjectType, string roleName)
        {
            var roleType = new DynamicManyToManyRoleType(roleObjectType, roleName);

            this.AddRoleType(roleType);

            var associationType = new DynamicManyToManyAssociationType(this, roleType);

            roleObjectType.AddAssociationType(associationType);

            this.Meta.ResetDerivations();

            return(roleType);
        }
 public void Deconstruct(out DynamicManyToManyAssociationType associationType, out DynamicManyToManyRoleType roleType)
 {
     associationType = this.AssociationType;
     roleType        = this;
 }