Пример #1
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IAttributeUseStateRemoved MapRemove(IRemoveAttributeUse c, IAttributeSetCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId            = new AttributeUseStateEventId(c.AttributeSetId, c.AttributeId, version);
            IAttributeUseStateRemoved e = NewAttributeUseStateRemoved(stateEventId);


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

            return(e);
        }// END Map(IRemove... ////////////////////////////
Пример #2
0
        protected virtual IAttributeUseStateCreated MapCreate(ICreateAttributeUse c, IAttributeSetCommand outerCommand, long version, IAttributeSetState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId            = new AttributeUseStateEventId(c.AttributeSetId, c.AttributeId, version);
            IAttributeUseStateCreated e = NewAttributeUseStateCreated(stateEventId);
            var s = outerState.AttributeUses.Get(c.AttributeId);

            e.SequenceNumber = c.SequenceNumber;
            e.Active         = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            return(e);
        }// END Map(ICreate... ////////////////////////////
Пример #3
0
        }// END Map(ICreate... ////////////////////////////

        protected virtual IAttributeUseStateMergePatched MapMergePatch(IMergePatchAttributeUse c, IAttributeSetCommand outerCommand, long version, IAttributeSetState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new AttributeUseStateEventId(c.AttributeSetId, c.AttributeId, version);
            IAttributeUseStateMergePatched e = NewAttributeUseStateMergePatched(stateEventId);
            var s = outerState.AttributeUses.Get(c.AttributeId);

            e.SequenceNumber = c.SequenceNumber;
            e.Active         = c.Active;
            e.IsPropertySequenceNumberRemoved = c.IsPropertySequenceNumberRemoved;
            e.IsPropertyActiveRemoved         = c.IsPropertyActiveRemoved;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            return(e);
        }// END Map(IMergePatch... ////////////////////////////
Пример #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeUseStateEventId other = obj as AttributeUseStateEventId;

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

            return(true &&
                   Object.Equals(this.AttributeSetId, other.AttributeSetId) &&
                   Object.Equals(this.AttributeId, other.AttributeId) &&
                   Object.Equals(this.AttributeSetVersion, other.AttributeSetVersion)
                   );
        }
Пример #5
0
 private AttributeUseStateRemoved NewAttributeUseStateRemoved(AttributeUseStateEventId stateEventId)
 {
     return(new AttributeUseStateRemoved(stateEventId));
 }
Пример #6
0
 private AttributeUseStateMergePatched NewAttributeUseStateMergePatched(AttributeUseStateEventId stateEventId)
 {
     return(new AttributeUseStateMergePatched(stateEventId));
 }
Пример #7
0
 protected AttributeUseStateEventBase(AttributeUseStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
Пример #8
0
 public AttributeUseStateRemoved(AttributeUseStateEventId stateEventId) : base(stateEventId)
 {
 }
Пример #9
0
 public AttributeUseStateMergePatched(AttributeUseStateEventId stateEventId) : base(stateEventId)
 {
 }
Пример #10
0
 public AttributeUseStateCreated(AttributeUseStateEventId stateEventId) : base(stateEventId)
 {
 }
Пример #11
0
 public AttributeUseStateEventIdFlattenedDto(AttributeUseStateEventId val)
 {
     this._value = val;
 }
Пример #12
0
        protected AttributeUseStateEventId NewAttributeUseStateEventId(string attributeId)
        {
            var stateEventId = new AttributeUseStateEventId(this.StateEventId.AttributeSetId, attributeId, this.StateEventId.Version);

            return(stateEventId);
        }