コード例 #1
0
        protected virtual IAttributeValueMvoStateMergePatched Map(IMergePatchAttributeValueMvo c)
        {
            var stateEventId = new AttributeValueMvoStateEventId(c.AttributeValueId, c.AttributeVersion);
            IAttributeValueMvoStateMergePatched e = NewAttributeValueMvoStateMergePatched(stateEventId);

            e.Name                                           = c.Name;
            e.Description                                    = c.Description;
            e.ReferenceId                                    = c.ReferenceId;
            e.Version                                        = c.Version;
            e.Active                                         = c.Active;
            e.AttributeName                                  = c.AttributeName;
            e.AttributeOrganizationId                        = c.AttributeOrganizationId;
            e.AttributeDescription                           = c.AttributeDescription;
            e.AttributeIsMandatory                           = c.AttributeIsMandatory;
            e.AttributeIsInstanceAttribute                   = c.AttributeIsInstanceAttribute;
            e.AttributeAttributeValueType                    = c.AttributeAttributeValueType;
            e.AttributeAttributeValueLength                  = c.AttributeAttributeValueLength;
            e.AttributeIsList                                = c.AttributeIsList;
            e.AttributeFieldName                             = c.AttributeFieldName;
            e.AttributeReferenceId                           = c.AttributeReferenceId;
            e.AttributeCreatedBy                             = c.AttributeCreatedBy;
            e.AttributeCreatedAt                             = c.AttributeCreatedAt;
            e.AttributeUpdatedBy                             = c.AttributeUpdatedBy;
            e.AttributeUpdatedAt                             = c.AttributeUpdatedAt;
            e.AttributeActive                                = c.AttributeActive;
            e.AttributeDeleted                               = c.AttributeDeleted;
            e.IsPropertyNameRemoved                          = c.IsPropertyNameRemoved;
            e.IsPropertyDescriptionRemoved                   = c.IsPropertyDescriptionRemoved;
            e.IsPropertyReferenceIdRemoved                   = c.IsPropertyReferenceIdRemoved;
            e.IsPropertyVersionRemoved                       = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                        = c.IsPropertyActiveRemoved;
            e.IsPropertyAttributeNameRemoved                 = c.IsPropertyAttributeNameRemoved;
            e.IsPropertyAttributeOrganizationIdRemoved       = c.IsPropertyAttributeOrganizationIdRemoved;
            e.IsPropertyAttributeDescriptionRemoved          = c.IsPropertyAttributeDescriptionRemoved;
            e.IsPropertyAttributeIsMandatoryRemoved          = c.IsPropertyAttributeIsMandatoryRemoved;
            e.IsPropertyAttributeIsInstanceAttributeRemoved  = c.IsPropertyAttributeIsInstanceAttributeRemoved;
            e.IsPropertyAttributeAttributeValueTypeRemoved   = c.IsPropertyAttributeAttributeValueTypeRemoved;
            e.IsPropertyAttributeAttributeValueLengthRemoved = c.IsPropertyAttributeAttributeValueLengthRemoved;
            e.IsPropertyAttributeIsListRemoved               = c.IsPropertyAttributeIsListRemoved;
            e.IsPropertyAttributeFieldNameRemoved            = c.IsPropertyAttributeFieldNameRemoved;
            e.IsPropertyAttributeReferenceIdRemoved          = c.IsPropertyAttributeReferenceIdRemoved;
            e.IsPropertyAttributeCreatedByRemoved            = c.IsPropertyAttributeCreatedByRemoved;
            e.IsPropertyAttributeCreatedAtRemoved            = c.IsPropertyAttributeCreatedAtRemoved;
            e.IsPropertyAttributeUpdatedByRemoved            = c.IsPropertyAttributeUpdatedByRemoved;
            e.IsPropertyAttributeUpdatedAtRemoved            = c.IsPropertyAttributeUpdatedAtRemoved;
            e.IsPropertyAttributeActiveRemoved               = c.IsPropertyAttributeActiveRemoved;
            e.IsPropertyAttributeDeletedRemoved              = c.IsPropertyAttributeDeletedRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;

            var attributeVersion = c.AttributeVersion;


            return(e);
        }
コード例 #2
0
 public AttributeValueMvoStateEventIdDtoWrapper(AttributeValueMvoStateEventId val)
 {
     if (val == null)
     {
         throw new ArgumentNullException("val");
     }
     this._value = val;
 }
コード例 #3
0
        public virtual AttributeValueMvoStateEventId ToAttributeValueMvoStateEventId()
        {
            AttributeValueMvoStateEventId v = new AttributeValueMvoStateEventId();

            v.AttributeValueId = this.AttributeValueId.ToAttributeValueId();
            v.AttributeVersion = this.AttributeVersion;
            return(v);
        }
コード例 #4
0
        protected AttributeValueMvoStateDeleted NewAttributeValueMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new AttributeValueMvoStateEventId(_state.AttributeValueId, ((IAttributeValueMvoStateProperties)_state).AttributeVersion);
            var e            = NewAttributeValueMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }
コード例 #5
0
        protected virtual IAttributeValueMvoStateDeleted Map(IDeleteAttributeValueMvo c)
        {
            var stateEventId = new AttributeValueMvoStateEventId(c.AttributeValueId, c.AttributeVersion);
            IAttributeValueMvoStateDeleted e = NewAttributeValueMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
コード例 #6
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeValueMvoStateEventId other = obj as AttributeValueMvoStateEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.AttributeValueId, other.AttributeValueId) &&
                   Object.Equals(this.AttributeVersion, other.AttributeVersion)
                   );
        }
コード例 #7
0
 public AttributeValueMvoStateDeleted(AttributeValueMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #8
0
 public AttributeValueMvoStateMergePatched(AttributeValueMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #9
0
 protected AttributeValueMvoStateEventBase(AttributeValueMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
コード例 #10
0
 public AttributeValueMvoStateEventIdFlattenedDto(AttributeValueMvoStateEventId val)
 {
     this._value = new AttributeValueMvoStateEventIdDtoWrapper(val);
 }
コード例 #11
0
 private AttributeValueMvoStateDeleted NewAttributeValueMvoStateDeleted(AttributeValueMvoStateEventId stateEventId)
 {
     return(new AttributeValueMvoStateDeleted(stateEventId));
 }
コード例 #12
0
 private AttributeValueMvoStateMergePatched NewAttributeValueMvoStateMergePatched(AttributeValueMvoStateEventId stateEventId)
 {
     return(new AttributeValueMvoStateMergePatched(stateEventId));
 }