Beispiel #1
0
        public void AddPropertyMember(Guid propertyId, Guid userId, int index, bool isRequired)
        {
            XPropertyGroupPropertyRelation relation = new XPropertyGroupPropertyRelation();

            relation.PropertyId      = propertyId;
            relation.PropertyGroupId = this.Id;
            relation.CreatedBy       = userId;
            relation.Created         = DateTime.Now;
            relation.Index           = index;
            relation.IsRequired      = isRequired;

            this._propertyRelations.Add(relation);

            this.IsDirty = true;
        }
Beispiel #2
0
        public void AddPropertyMember(XPropertyGroupPropertyRelation relation)
        {
            this._propertyRelations.Add(relation);

            this.IsDirty = true;
        }