Exemple #1
0
 public DynamicManyToManyAssociationType(DynamicObjectType objectType, DynamicManyToManyRoleType roleType)
 {
     this.ObjectType          = objectType;
     roleType.AssociationType = this;
     this.RoleType            = roleType;
     this.SingularName        = roleType.SingularNameForAssociation(objectType);
     this.PluralName          = roleType.PluralNameForAssociation(objectType);
 }
Exemple #2
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;
 }