示例#1
0
 public AttributeUseStateEventIdDtoWrapper(AttributeUseStateEventId val)
 {
     if (val == null)
     {
         throw new ArgumentNullException("val");
     }
     this._value = val;
 }
示例#2
0
        public virtual AttributeUseStateEventId ToAttributeUseStateEventId()
        {
            AttributeUseStateEventId v = new AttributeUseStateEventId();

            v.AttributeSetId      = this.AttributeSetId;
            v.AttributeId         = this.AttributeId;
            v.AttributeSetVersion = this.AttributeSetVersion;
            return(v);
        }
示例#3
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... ////////////////////////////
示例#4
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, true);

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

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            return(e);
        }// END Map(ICreate... ////////////////////////////
示例#5
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... ////////////////////////////
        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)
                   );
        }
示例#7
0
 private AttributeUseStateRemoved NewAttributeUseStateRemoved(AttributeUseStateEventId stateEventId)
 {
     return(new AttributeUseStateRemoved(stateEventId));
 }
示例#8
0
 private AttributeUseStateMergePatched NewAttributeUseStateMergePatched(AttributeUseStateEventId stateEventId)
 {
     return(new AttributeUseStateMergePatched(stateEventId));
 }
 public AttributeUseStateEventIdFlattenedDto(AttributeUseStateEventId val)
 {
     this._value = new AttributeUseStateEventIdDtoWrapper(val);
 }
示例#10
0
 protected AttributeUseStateEventBase(AttributeUseStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
示例#11
0
 public AttributeUseStateRemoved(AttributeUseStateEventId stateEventId) : base(stateEventId)
 {
 }
示例#12
0
 public AttributeUseStateMergePatched(AttributeUseStateEventId stateEventId) : base(stateEventId)
 {
 }
示例#13
0
 public AttributeUseStateCreated(AttributeUseStateEventId stateEventId) : base(stateEventId)
 {
 }
示例#14
0
        protected AttributeUseStateEventId NewAttributeUseStateEventId(string attributeId)
        {
            var stateEventId = new AttributeUseStateEventId(this.StateEventId.AttributeSetId, attributeId, this.StateEventId.Version);

            return(stateEventId);
        }