}// END Map(IMergePatch... ////////////////////////////

        protected virtual IAttributeSetInstanceExtensionFieldStateRemoved MapRemove(IRemoveAttributeSetInstanceExtensionField c, IAttributeSetInstanceExtensionFieldGroupCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(c.GroupId, c.Index, version);
            IAttributeSetInstanceExtensionFieldStateRemoved e = NewAttributeSetInstanceExtensionFieldStateRemoved(stateEventId);


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

            return(e);
        }// END Map(IRemove... ////////////////////////////
        protected virtual IAttributeSetInstanceExtensionFieldStateCreated MapCreate(ICreateAttributeSetInstanceExtensionField c, IAttributeSetInstanceExtensionFieldGroupCommand outerCommand, long version, IAttributeSetInstanceExtensionFieldGroupState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(c.GroupId, c.Index, version);
            IAttributeSetInstanceExtensionFieldStateCreated e = NewAttributeSetInstanceExtensionFieldStateCreated(stateEventId);
            var s = outerState.Fields.Get(c.Index);

            e.Name        = c.Name;
            e.Type        = c.Type;
            e.Length      = c.Length;
            e.Alias       = c.Alias;
            e.Description = c.Description;
            e.Active      = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            return(e);
        }// END Map(ICreate... ////////////////////////////
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeSetInstanceExtensionFieldStateEventId other = obj as AttributeSetInstanceExtensionFieldStateEventId;

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

            return(true &&
                   Object.Equals(this.GroupId, other.GroupId) &&
                   Object.Equals(this.Index, other.Index) &&
                   Object.Equals(this.AttributeSetInstanceExtensionFieldGroupVersion, other.AttributeSetInstanceExtensionFieldGroupVersion)
                   );
        }
Example #4
0
        protected AttributeSetInstanceExtensionFieldStateEventId NewAttributeSetInstanceExtensionFieldStateEventId(string index)
        {
            var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(this.StateEventId.Id, index, this.StateEventId.Version);

            return(stateEventId);
        }
Example #5
0
 public AttributeSetInstanceExtensionFieldStateRemoved(AttributeSetInstanceExtensionFieldStateEventId stateEventId) : base(stateEventId)
 {
 }
Example #6
0
 public AttributeSetInstanceExtensionFieldStateMergePatched(AttributeSetInstanceExtensionFieldStateEventId stateEventId) : base(stateEventId)
 {
 }
Example #7
0
 protected AttributeSetInstanceExtensionFieldStateEventBase(AttributeSetInstanceExtensionFieldStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
 private AttributeSetInstanceExtensionFieldStateRemoved NewAttributeSetInstanceExtensionFieldStateRemoved(AttributeSetInstanceExtensionFieldStateEventId stateEventId)
 {
     return(new AttributeSetInstanceExtensionFieldStateRemoved(stateEventId));
 }
 public AttributeSetInstanceExtensionFieldStateEventIdDto(AttributeSetInstanceExtensionFieldStateEventId val)
 {
     this._value = val;
 }